mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 14:34:40 +00:00
eject webpack overrides
This commit is contained in:
parent
6e238b2950
commit
b2f56a9eb1
@ -433,6 +433,20 @@ class EmbarkController {
|
||||
fs.copySync(embarkConfig, dappConfig);
|
||||
console.log(__('webpack config ejected to: ').dim.yellow);
|
||||
console.log(`${dappConfig}`.green);
|
||||
var dappOverrides = fs.dappPath('webpack-overrides.js');
|
||||
var embarkOverrides = fs.embarkPath('lib/pipeline', 'webpack-overrides.js');
|
||||
ext = 1;
|
||||
let dappOverridesOld = dappOverrides;
|
||||
while (fs.existsSync(dappOverridesOld)) {
|
||||
dappOverridesOld = dappOverrides + `.${ext}`;
|
||||
ext++;
|
||||
}
|
||||
if (dappOverridesOld !== dappOverrides) {
|
||||
fs.copySync(dappOverrides, dappOverridesOld);
|
||||
}
|
||||
fs.copySync(embarkOverrides, dappOverrides);
|
||||
console.log(__('webpack overrides ejected to: ').dim.yellow);
|
||||
console.log(`${dappOverrides}`.green);
|
||||
}
|
||||
|
||||
upload(options) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user