Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit b52e33e

Browse files
committed
fix(ns-bundle): pass platform and uglify as env properties
1 parent e4a556c commit b52e33e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Diff for: bin/ns-bundle

+10-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,16 @@ function webpack(platform) {
6767
return new Promise(function (resolve, reject) {
6868
console.log(`Running webpack for ${platform}...`);
6969

70-
spawnChildProcess(true, "webpack", `--config=webpack.${platform}.js`, "--progress")
70+
const args = [
71+
true, // show output on console
72+
`webpack`,
73+
`--config=webpack.common.js`,
74+
`--progress`,
75+
`--env.${platform}`,
76+
process.env.npm_config_uglify && `--env.uglify`,
77+
];
78+
79+
spawnChildProcess(...args)
7180
.then(resolve)
7281
.catch(throwError);
7382
});

0 commit comments

Comments
 (0)