Skip to content

Commit

Permalink
fix(@embark/cmd_controller): use the correct path for eject-webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsbradleyjr committed Sep 24, 2019
1 parent ff75fe9 commit 98400dc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/embark/src/cmd/cmd_controller.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {__} from 'embark-i18n';
import {dappPath, embarkPath} from 'embark-utils';
import findUp from 'find-up';
let async = require('async');
const constants = require('embark-core/constants');
const Logger = require('embark-logger');
Expand Down Expand Up @@ -514,12 +513,12 @@ simulator(_options) {
}

ejectWebpack() {
const embarkConfig = (findUp.sync('node_modules/embark-pipeline/dist/webpack.config.js', {cwd: embarkPath()}) || embarkPath("node_modules/embark-pipeline/dist/webpack.config.js"));
const embarkConfig = embarkPath("dist/lib/modules/basic-pipeline/webpack.config.js");
const dappConfig = dappPath('webpack.config.js');
fs.copyPreserve(embarkConfig, dappConfig);
console.log(__('webpack config ejected to:').dim.yellow);
console.log(`${dappConfig}`.green);
const embarkOverrides = (findUp.sync('node_modules/embark-pipeline/dist/babel-loader-overrides.js', {cwd: embarkPath()}) || embarkPath("node_modules/embark-pipeline/dist/babel-loader-overrides.js"));
const embarkOverrides = embarkPath("dist/lib/modules/basic-pipeline/babel-loader-overrides.js");
const dappOverrides = dappPath('babel-loader-overrides.js');
fs.copyPreserve(embarkOverrides, dappOverrides);
console.log(__('webpack overrides ejected to:').dim.yellow);
Expand Down

0 comments on commit 98400dc

Please sign in to comment.