@caweb/webpack 1.6.7 → 1.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/args.js +3 -1
- package/package.json +1 -1
- package/webpack.config.js +1 -2
package/lib/args.js
CHANGED
|
@@ -15,11 +15,13 @@ let argv0 = process.argv0.replace(/.*node[.a-z\s]*/, '');
|
|
|
15
15
|
|
|
16
16
|
// flags can be passed via argv0
|
|
17
17
|
// we also add args from NODE_OPTIONS
|
|
18
|
+
// we also add args from CAWEB_NODE_OPTIONS
|
|
18
19
|
let { values: flags } = parseArgs( {
|
|
19
20
|
args: [
|
|
20
21
|
...argv,
|
|
21
22
|
...argv0.split(' '),
|
|
22
|
-
...(process.env.NODE_OPTIONS ? process.env.NODE_OPTIONS.trim().replace(/(^'|'$)/g, '').split(' ') : []).filter( Boolean )
|
|
23
|
+
...(process.env.NODE_OPTIONS ? process.env.NODE_OPTIONS.trim().replace(/(^'|'$)/g, '').split(' ') : []).filter( Boolean ),
|
|
24
|
+
...(process.env.CAWEB_NODE_OPTIONS ? process.env.CAWEB_NODE_OPTIONS.trim().replace(/(^'|'$)/g, '').split(' ') : []).filter( Boolean )
|
|
23
25
|
].filter( Boolean ),
|
|
24
26
|
strict: false,
|
|
25
27
|
allowPositionals: true,
|
package/package.json
CHANGED
package/webpack.config.js
CHANGED
|
@@ -102,8 +102,7 @@ let webpackConfig = {
|
|
|
102
102
|
filename: isProduction ? '[name].min.js' : '[name].js',
|
|
103
103
|
chunkFilename: isProduction ? '[name].min.js?v=[chunkhash]' : '[name].js?v=[chunkhash]',
|
|
104
104
|
pathinfo: false,
|
|
105
|
-
clean: isProduction
|
|
106
|
-
publicPath: '/',
|
|
105
|
+
clean: isProduction
|
|
107
106
|
},
|
|
108
107
|
|
|
109
108
|
/**
|