mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-20 17:38:28 +00:00
fix order and remove ?
This commit is contained in:
parent
047286b46d
commit
56147ba200
@ -86,13 +86,13 @@ class Pipeline {
|
|||||||
function runWebpack(next) {
|
function runWebpack(next) {
|
||||||
self.logger.info(__(`running webpack with '${self.webpackConfigName}' config...`));
|
self.logger.info(__(`running webpack with '${self.webpackConfigName}' config...`));
|
||||||
const assets = Object.keys(self.assetFiles)
|
const assets = Object.keys(self.assetFiles)
|
||||||
.filter(key => key.match(/\.js?$/));
|
.filter(key => key.match(/\.js$/));
|
||||||
assets.forEach(key => {
|
|
||||||
self.logger.info(__("writing file") + " " + (utils.joinPath(self.buildDir, key)).bold.dim);
|
|
||||||
});
|
|
||||||
if (!assets || !assets.length) {
|
if (!assets || !assets.length) {
|
||||||
return next();
|
return next();
|
||||||
}
|
}
|
||||||
|
assets.forEach(key => {
|
||||||
|
self.logger.info(__("writing file") + " " + (utils.joinPath(self.buildDir, key)).bold.dim);
|
||||||
|
});
|
||||||
let built = false;
|
let built = false;
|
||||||
const webpackProcess = new ProcessLauncher({
|
const webpackProcess = new ProcessLauncher({
|
||||||
modulePath: utils.joinPath(__dirname, 'webpackProcess.js'),
|
modulePath: utils.joinPath(__dirname, 'webpackProcess.js'),
|
||||||
@ -120,7 +120,7 @@ class Pipeline {
|
|||||||
async.eachOf(
|
async.eachOf(
|
||||||
// assetFileWrite should not process .js files
|
// assetFileWrite should not process .js files
|
||||||
Object.keys(self.assetFiles)
|
Object.keys(self.assetFiles)
|
||||||
.filter(key => !key.match(/\.js?$/))
|
.filter(key => !key.match(/\.js$/))
|
||||||
.reduce((obj, key) => {
|
.reduce((obj, key) => {
|
||||||
obj[key] = self.assetFiles[key];
|
obj[key] = self.assetFiles[key];
|
||||||
return obj;
|
return obj;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user