@caweb/webpack 1.6.8 → 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/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,
|