mirror of https://github.com/embarklabs/embark.git
relocate webpack.config.js under lib/pipeline/
This commit is contained in:
parent
2e96557875
commit
e1fb746aa7
|
@ -409,7 +409,7 @@ class EmbarkController {
|
||||||
ejectWebpack() {
|
ejectWebpack() {
|
||||||
var fs = require('../lib/core/fs.js');
|
var fs = require('../lib/core/fs.js');
|
||||||
var dappConfig = fs.dappPath('webpack.config.js');
|
var dappConfig = fs.dappPath('webpack.config.js');
|
||||||
var embarkConfig = fs.embarkPath('webpack.config.js');
|
var embarkConfig = fs.embarkPath('lib/pipeline', 'webpack.config.js');
|
||||||
if (fs.existsSync(dappConfig)) {
|
if (fs.existsSync(dappConfig)) {
|
||||||
console.error(`${dappConfig} ${__('already exists')}`.bold.red);
|
console.error(`${dappConfig} ${__('already exists')}`.bold.red);
|
||||||
console.error(__('not overwritten, rename or re/move the file and re-run this command').yellow);
|
console.error(__('not overwritten, rename or re/move the file and re-run this command').yellow);
|
||||||
|
|
|
@ -39,7 +39,7 @@ class WebpackProcess extends ProcessWrapper {
|
||||||
}
|
}
|
||||||
|
|
||||||
const dappConfigPath = fs.dappPath('webpack.config.js');
|
const dappConfigPath = fs.dappPath('webpack.config.js');
|
||||||
const defaultConfigPath = fs.embarkPath('webpack.config.js');
|
const defaultConfigPath = fs.embarkPath('lib/pipeline', 'webpack.config.js');
|
||||||
|
|
||||||
let config, configPath;
|
let config, configPath;
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue