Skip to content

Commit c737383

Browse files
shuta13anshumanvsnitin315
authored andcommittedNov 15, 2022
fix(webpack-cli): add an option for preventing interpret (#3329)
* fix(webpack-cli): add an option for preventing interpret * fix: define the option for built-in flags * docs: add descriptions of the option * refactor: rename `--config-registered` to `--disable-interpret` * fix: change conditional statement * refactor: standalone test * test: use `--disable-interpret` without transpilation * docs: fix the description Co-authored-by: Anshuman Verma <anshu.av97@gmail.com> * refactor: built-in options type Co-authored-by: Nitin Kumar <snitin315@gmail.com> * test: re-update snapshots * fix: add double quote Co-authored-by: Nitin Kumar <snitin315@gmail.com> * test: update snapshots for webpack4 * chore: remove `--require` from `test:coverage` * test: update snapshots Co-authored-by: Anshuman Verma <anshu.av97@gmail.com> Co-authored-by: Nitin Kumar <snitin315@gmail.com>
1 parent 4cbb354 commit c737383

13 files changed

+165
-3
lines changed
 

‎OPTIONS.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Options:
88
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
99
--config-name <value...> Name of the configuration to use.
1010
-m, --merge Merge two or more configurations using 'webpack-merge'.
11+
--disable-interpret Disable interpret for loading the config file.
1112
--env <value...> Environment passed to the configuration when it is a function.
1213
--node-env <value> Sets process.env.NODE_ENV to the specified value.
1314
-h, --hot [value] Enables Hot Module Replacement

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"pretest": "yarn build && yarn lint && yarn prepsuite",
4242
"test": "jest --reporters=default",
4343
"test:smoketests": "nyc node smoketests",
44-
"test:coverage": "nyc --no-clean --require ts-node/register jest",
44+
"test:coverage": "nyc --no-clean jest",
4545
"test:cli": "jest test --reporters=default",
4646
"test:packages": "jest packages/ --reporters=default",
4747
"test:ci": "yarn test:cli && yarn test:packages",

‎packages/webpack-cli/src/types.ts

+1
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ type WebpackDevServerOptions = DevServerConfig &
175175
merge?: boolean;
176176
config: string[];
177177
configName?: string[];
178+
disableInterpret?: boolean;
178179
argv: Argv;
179180
};
180181

‎packages/webpack-cli/src/webpack-cli.ts

+15-1
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,7 @@ class WebpackCLI implements IWebpackCLI {
697697
"config",
698698
"config-name",
699699
"merge",
700+
"disable-interpret",
700701
"env",
701702
"mode",
702703
"watch",
@@ -746,6 +747,16 @@ class WebpackCLI implements IWebpackCLI {
746747
],
747748
description: "Merge two or more configurations using 'webpack-merge'.",
748749
},
750+
{
751+
name: "disable-interpret",
752+
configs: [
753+
{
754+
type: "enum",
755+
values: [true],
756+
},
757+
],
758+
description: "Disable interpret a config file.",
759+
},
749760
// Complex configs
750761
{
751762
name: "env",
@@ -1775,12 +1786,15 @@ class WebpackCLI implements IWebpackCLI {
17751786
}
17761787

17771788
async loadConfig(options: Partial<WebpackDevServerOptions>) {
1789+
const disableInterpret =
1790+
typeof options.disableInterpret !== "undefined" && options.disableInterpret;
1791+
17781792
const interpret = require("interpret");
17791793
const loadConfigByPath = async (configPath: string, argv: Argv = {}) => {
17801794
const ext = path.extname(configPath);
17811795
const interpreted = Object.keys(interpret.jsVariants).find((variant) => variant === ext);
17821796

1783-
if (interpreted) {
1797+
if (interpreted && !disableInterpret) {
17841798
const rechoir: Rechoir = require("rechoir");
17851799

17861800
try {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
const { run } = require("../../../utils/test-utils");
2+
const { existsSync, unlinkSync } = require("fs");
3+
const { resolve } = require("path");
4+
5+
// eslint-disable-next-line node/no-unpublished-require
6+
const execa = require("execa");
7+
const { sync: spawnSync } = execa;
8+
9+
describe("webpack cli", () => {
10+
it('should work with the "disable-interpret" option from flags', async () => {
11+
const configFileName = "webpack.config";
12+
const configFilePath = resolve(__dirname, `${configFileName}.ts`);
13+
const buildScripts = spawnSync("yarn", ["tsc", configFilePath]);
14+
expect(buildScripts.stdout).toBeTruthy();
15+
16+
const { exitCode, stderr, stdout } = await run(__dirname, ["--disable-interpret"]);
17+
unlinkSync(resolve(__dirname, `${configFileName}.js`));
18+
19+
expect(stderr).toBeFalsy();
20+
expect(stdout).toBeTruthy();
21+
expect(exitCode).toBe(0);
22+
expect(existsSync(resolve(__dirname, "dist/foo.bundle.js"))).toBeTruthy();
23+
});
24+
25+
it("should log error without transpilation", async () => {
26+
const { exitCode, stderr, stdout } = await run(__dirname, ["--disable-interpret"]);
27+
28+
expect(exitCode).toBe(2);
29+
expect(stderr).toContain(`Failed to load '${resolve(__dirname, "webpack.config.ts")}' config`);
30+
expect(stdout).toBeFalsy();
31+
});
32+
});
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log("Main typescript file");
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"compilerOptions": {
3+
"module": "commonjs"
4+
}
5+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/* eslint-disable node/no-unsupported-features/es-syntax */
2+
/** eslint-disable **/
3+
import * as path from "path";
4+
5+
const config = {
6+
mode: "production",
7+
entry: "./main.ts",
8+
output: {
9+
path: path.resolve(__dirname, "dist"),
10+
filename: "foo.bundle.js",
11+
},
12+
};
13+
14+
export = config;

‎test/build/config-format/typescript/typescript.test.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ const { resolve } = require("path");
44

55
describe("webpack cli", () => {
66
it("should support typescript file", async () => {
7-
const { exitCode, stderr, stdout } = await run(__dirname, ["-c", "./webpack.config.ts"]);
7+
const { exitCode, stderr, stdout } = await run(__dirname, ["-c", "./webpack.config.ts"], {
8+
nodeOptions: ["--require=ts-node/register"],
9+
});
810

911
expect(stderr).toBeFalsy();
1012
expect(stdout).toBeTruthy();

‎test/help/__snapshots__/help.test.js.snap.devServer3.webpack4

+27
Large diffs are not rendered by default.

‎test/help/__snapshots__/help.test.js.snap.devServer3.webpack5

+27
Large diffs are not rendered by default.

‎test/help/__snapshots__/help.test.js.snap.devServer4.webpack4

+19
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ Options:
9797
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
9898
--config-name <value...> Name of the configuration to use.
9999
-m, --merge Merge two or more configurations using 'webpack-merge'.
100+
--disable-interpret Disable interpret a config file.
100101
--env <value...> Environment passed to the configuration when it is a function.
101102
--node-env <value> Sets process.env.NODE_ENV to the specified value.
102103
--progress [value] Print compilation progress during build.
@@ -152,6 +153,7 @@ Options:
152153
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
153154
--config-name <value...> Name of the configuration to use.
154155
-m, --merge Merge two or more configurations using 'webpack-merge'.
156+
--disable-interpret Disable interpret a config file.
155157
--env <value...> Environment passed to the configuration when it is a function.
156158
--node-env <value> Sets process.env.NODE_ENV to the specified value.
157159
--progress [value] Print compilation progress during build.
@@ -207,6 +209,7 @@ Options:
207209
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
208210
--config-name <value...> Name of the configuration to use.
209211
-m, --merge Merge two or more configurations using 'webpack-merge'.
212+
--disable-interpret Disable interpret a config file.
210213
--env <value...> Environment passed to the configuration when it is a function.
211214
--node-env <value> Sets process.env.NODE_ENV to the specified value.
212215
--progress [value] Print compilation progress during build.
@@ -261,6 +264,7 @@ Options:
261264
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
262265
--config-name <value...> Name of the configuration to use.
263266
-m, --merge Merge two or more configurations using 'webpack-merge'.
267+
--disable-interpret Disable interpret a config file.
264268
--env <value...> Environment passed to the configuration when it is a function.
265269
--node-env <value> Sets process.env.NODE_ENV to the specified value.
266270
--progress [value] Print compilation progress during build.
@@ -303,6 +307,7 @@ Options:
303307
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
304308
--config-name <value...> Name of the configuration to use.
305309
-m, --merge Merge two or more configurations using 'webpack-merge'.
310+
--disable-interpret Disable interpret a config file.
306311
--env <value...> Environment passed to the configuration when it is a function.
307312
--node-env <value> Sets process.env.NODE_ENV to the specified value.
308313
--progress [value] Print compilation progress during build.
@@ -347,6 +352,7 @@ Options:
347352
--config-name <value...> Name of the configuration to use.
348353
-m, --merge Merge two or more configurations using
349354
'webpack-merge'.
355+
--disable-interpret Disable interpret a config file.
350356
--env <value...> Environment passed to the configuration when it is
351357
a function.
352358
--node-env <value> Sets process.env.NODE_ENV to the specified value.
@@ -398,6 +404,7 @@ Options:
398404
--config-name <value...> Name of the configuration to use.
399405
-m, --merge Merge two or more configurations using
400406
'webpack-merge'.
407+
--disable-interpret Disable interpret a config file.
401408
--env <value...> Environment passed to the configuration when it is
402409
a function.
403410
--node-env <value> Sets process.env.NODE_ENV to the specified value.
@@ -447,6 +454,7 @@ Options:
447454
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
448455
--config-name <value...> Name of the configuration to use.
449456
-m, --merge Merge two or more configurations using 'webpack-merge'.
457+
--disable-interpret Disable interpret a config file.
450458
--env <value...> Environment passed to the configuration when it is a function.
451459
--node-env <value> Sets process.env.NODE_ENV to the specified value.
452460
--progress [value] Print compilation progress during build.
@@ -489,6 +497,7 @@ Options:
489497
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
490498
--config-name <value...> Name of the configuration to use.
491499
-m, --merge Merge two or more configurations using 'webpack-merge'.
500+
--disable-interpret Disable interpret a config file.
492501
--env <value...> Environment passed to the configuration when it is a function.
493502
--node-env <value> Sets process.env.NODE_ENV to the specified value.
494503
--progress [value] Print compilation progress during build.
@@ -1465,6 +1474,7 @@ Options:
14651474
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
14661475
--config-name <value...> Name of the configuration to use.
14671476
-m, --merge Merge two or more configurations using 'webpack-merge'.
1477+
--disable-interpret Disable interpret a config file.
14681478
--env <value...> Environment passed to the configuration when it is a function.
14691479
--node-env <value> Sets process.env.NODE_ENV to the specified value.
14701480
--progress [value] Print compilation progress during build.
@@ -1505,6 +1515,7 @@ Options:
15051515
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
15061516
--config-name <value...> Name of the configuration to use.
15071517
-m, --merge Merge two or more configurations using 'webpack-merge'.
1518+
--disable-interpret Disable interpret a config file.
15081519
--env <value...> Environment passed to the configuration when it is a function.
15091520
--node-env <value> Sets process.env.NODE_ENV to the specified value.
15101521
--progress [value] Print compilation progress during build.
@@ -1547,6 +1558,7 @@ Options:
15471558
--config-name <value...> Name of the configuration to use.
15481559
-m, --merge Merge two or more configurations using
15491560
'webpack-merge'.
1561+
--disable-interpret Disable interpret a config file.
15501562
--env <value...> Environment passed to the configuration when it is
15511563
a function.
15521564
--node-env <value> Sets process.env.NODE_ENV to the specified value.
@@ -1596,6 +1608,7 @@ Options:
15961608
--config-name <value...> Name of the configuration to use.
15971609
-m, --merge Merge two or more configurations using
15981610
'webpack-merge'.
1611+
--disable-interpret Disable interpret a config file.
15991612
--env <value...> Environment passed to the configuration when it is
16001613
a function.
16011614
--node-env <value> Sets process.env.NODE_ENV to the specified value.
@@ -1643,6 +1656,7 @@ Options:
16431656
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
16441657
--config-name <value...> Name of the configuration to use.
16451658
-m, --merge Merge two or more configurations using 'webpack-merge'.
1659+
--disable-interpret Disable interpret a config file.
16461660
--env <value...> Environment passed to the configuration when it is a function.
16471661
--node-env <value> Sets process.env.NODE_ENV to the specified value.
16481662
--progress [value] Print compilation progress during build.
@@ -1683,6 +1697,7 @@ Options:
16831697
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
16841698
--config-name <value...> Name of the configuration to use.
16851699
-m, --merge Merge two or more configurations using 'webpack-merge'.
1700+
--disable-interpret Disable interpret a config file.
16861701
--env <value...> Environment passed to the configuration when it is a function.
16871702
--node-env <value> Sets process.env.NODE_ENV to the specified value.
16881703
--progress [value] Print compilation progress during build.
@@ -1724,6 +1739,7 @@ Options:
17241739
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
17251740
--config-name <value...> Name of the configuration to use.
17261741
-m, --merge Merge two or more configurations using 'webpack-merge'.
1742+
--disable-interpret Disable interpret a config file.
17271743
--env <value...> Environment passed to the configuration when it is a function.
17281744
--node-env <value> Sets process.env.NODE_ENV to the specified value.
17291745
--progress [value] Print compilation progress during build.
@@ -1779,6 +1795,7 @@ Options:
17791795
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
17801796
--config-name <value...> Name of the configuration to use.
17811797
-m, --merge Merge two or more configurations using 'webpack-merge'.
1798+
--disable-interpret Disable interpret a config file.
17821799
--env <value...> Environment passed to the configuration when it is a function.
17831800
--node-env <value> Sets process.env.NODE_ENV to the specified value.
17841801
--progress [value] Print compilation progress during build.
@@ -2006,6 +2023,7 @@ Options:
20062023
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
20072024
--config-name <value...> Name of the configuration to use.
20082025
-m, --merge Merge two or more configurations using 'webpack-merge'.
2026+
--disable-interpret Disable interpret a config file.
20092027
--env <value...> Environment passed to the configuration when it is a function.
20102028
--node-env <value> Sets process.env.NODE_ENV to the specified value.
20112029
--progress [value] Print compilation progress during build.
@@ -2059,6 +2077,7 @@ Options:
20592077
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
20602078
--config-name <value...> Name of the configuration to use.
20612079
-m, --merge Merge two or more configurations using 'webpack-merge'.
2080+
--disable-interpret Disable interpret a config file.
20622081
--env <value...> Environment passed to the configuration when it is a function.
20632082
--node-env <value> Sets process.env.NODE_ENV to the specified value.
20642083
--progress [value] Print compilation progress during build.

‎test/help/__snapshots__/help.test.js.snap.devServer4.webpack5

+19
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ Options:
9797
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
9898
--config-name <value...> Name of the configuration to use.
9999
-m, --merge Merge two or more configurations using 'webpack-merge'.
100+
--disable-interpret Disable interpret a config file.
100101
--env <value...> Environment passed to the configuration when it is a function.
101102
--node-env <value> Sets process.env.NODE_ENV to the specified value.
102103
--progress [value] Print compilation progress during build.
@@ -153,6 +154,7 @@ Options:
153154
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
154155
--config-name <value...> Name of the configuration to use.
155156
-m, --merge Merge two or more configurations using 'webpack-merge'.
157+
--disable-interpret Disable interpret a config file.
156158
--env <value...> Environment passed to the configuration when it is a function.
157159
--node-env <value> Sets process.env.NODE_ENV to the specified value.
158160
--progress [value] Print compilation progress during build.
@@ -209,6 +211,7 @@ Options:
209211
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
210212
--config-name <value...> Name of the configuration to use.
211213
-m, --merge Merge two or more configurations using 'webpack-merge'.
214+
--disable-interpret Disable interpret a config file.
212215
--env <value...> Environment passed to the configuration when it is a function.
213216
--node-env <value> Sets process.env.NODE_ENV to the specified value.
214217
--progress [value] Print compilation progress during build.
@@ -264,6 +267,7 @@ Options:
264267
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
265268
--config-name <value...> Name of the configuration to use.
266269
-m, --merge Merge two or more configurations using 'webpack-merge'.
270+
--disable-interpret Disable interpret a config file.
267271
--env <value...> Environment passed to the configuration when it is a function.
268272
--node-env <value> Sets process.env.NODE_ENV to the specified value.
269273
--progress [value] Print compilation progress during build.
@@ -307,6 +311,7 @@ Options:
307311
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
308312
--config-name <value...> Name of the configuration to use.
309313
-m, --merge Merge two or more configurations using 'webpack-merge'.
314+
--disable-interpret Disable interpret a config file.
310315
--env <value...> Environment passed to the configuration when it is a function.
311316
--node-env <value> Sets process.env.NODE_ENV to the specified value.
312317
--progress [value] Print compilation progress during build.
@@ -352,6 +357,7 @@ Options:
352357
--config-name <value...> Name of the configuration to use.
353358
-m, --merge Merge two or more configurations using
354359
'webpack-merge'.
360+
--disable-interpret Disable interpret a config file.
355361
--env <value...> Environment passed to the configuration when it is
356362
a function.
357363
--node-env <value> Sets process.env.NODE_ENV to the specified value.
@@ -404,6 +410,7 @@ Options:
404410
--config-name <value...> Name of the configuration to use.
405411
-m, --merge Merge two or more configurations using
406412
'webpack-merge'.
413+
--disable-interpret Disable interpret a config file.
407414
--env <value...> Environment passed to the configuration when it is
408415
a function.
409416
--node-env <value> Sets process.env.NODE_ENV to the specified value.
@@ -454,6 +461,7 @@ Options:
454461
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
455462
--config-name <value...> Name of the configuration to use.
456463
-m, --merge Merge two or more configurations using 'webpack-merge'.
464+
--disable-interpret Disable interpret a config file.
457465
--env <value...> Environment passed to the configuration when it is a function.
458466
--node-env <value> Sets process.env.NODE_ENV to the specified value.
459467
--progress [value] Print compilation progress during build.
@@ -497,6 +505,7 @@ Options:
497505
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
498506
--config-name <value...> Name of the configuration to use.
499507
-m, --merge Merge two or more configurations using 'webpack-merge'.
508+
--disable-interpret Disable interpret a config file.
500509
--env <value...> Environment passed to the configuration when it is a function.
501510
--node-env <value> Sets process.env.NODE_ENV to the specified value.
502511
--progress [value] Print compilation progress during build.
@@ -1474,6 +1483,7 @@ Options:
14741483
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
14751484
--config-name <value...> Name of the configuration to use.
14761485
-m, --merge Merge two or more configurations using 'webpack-merge'.
1486+
--disable-interpret Disable interpret a config file.
14771487
--env <value...> Environment passed to the configuration when it is a function.
14781488
--node-env <value> Sets process.env.NODE_ENV to the specified value.
14791489
--progress [value] Print compilation progress during build.
@@ -1515,6 +1525,7 @@ Options:
15151525
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
15161526
--config-name <value...> Name of the configuration to use.
15171527
-m, --merge Merge two or more configurations using 'webpack-merge'.
1528+
--disable-interpret Disable interpret a config file.
15181529
--env <value...> Environment passed to the configuration when it is a function.
15191530
--node-env <value> Sets process.env.NODE_ENV to the specified value.
15201531
--progress [value] Print compilation progress during build.
@@ -1558,6 +1569,7 @@ Options:
15581569
--config-name <value...> Name of the configuration to use.
15591570
-m, --merge Merge two or more configurations using
15601571
'webpack-merge'.
1572+
--disable-interpret Disable interpret a config file.
15611573
--env <value...> Environment passed to the configuration when it is
15621574
a function.
15631575
--node-env <value> Sets process.env.NODE_ENV to the specified value.
@@ -1608,6 +1620,7 @@ Options:
16081620
--config-name <value...> Name of the configuration to use.
16091621
-m, --merge Merge two or more configurations using
16101622
'webpack-merge'.
1623+
--disable-interpret Disable interpret a config file.
16111624
--env <value...> Environment passed to the configuration when it is
16121625
a function.
16131626
--node-env <value> Sets process.env.NODE_ENV to the specified value.
@@ -1656,6 +1669,7 @@ Options:
16561669
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
16571670
--config-name <value...> Name of the configuration to use.
16581671
-m, --merge Merge two or more configurations using 'webpack-merge'.
1672+
--disable-interpret Disable interpret a config file.
16591673
--env <value...> Environment passed to the configuration when it is a function.
16601674
--node-env <value> Sets process.env.NODE_ENV to the specified value.
16611675
--progress [value] Print compilation progress during build.
@@ -1697,6 +1711,7 @@ Options:
16971711
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
16981712
--config-name <value...> Name of the configuration to use.
16991713
-m, --merge Merge two or more configurations using 'webpack-merge'.
1714+
--disable-interpret Disable interpret a config file.
17001715
--env <value...> Environment passed to the configuration when it is a function.
17011716
--node-env <value> Sets process.env.NODE_ENV to the specified value.
17021717
--progress [value] Print compilation progress during build.
@@ -1739,6 +1754,7 @@ Options:
17391754
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
17401755
--config-name <value...> Name of the configuration to use.
17411756
-m, --merge Merge two or more configurations using 'webpack-merge'.
1757+
--disable-interpret Disable interpret a config file.
17421758
--env <value...> Environment passed to the configuration when it is a function.
17431759
--node-env <value> Sets process.env.NODE_ENV to the specified value.
17441760
--progress [value] Print compilation progress during build.
@@ -1795,6 +1811,7 @@ Options:
17951811
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
17961812
--config-name <value...> Name of the configuration to use.
17971813
-m, --merge Merge two or more configurations using 'webpack-merge'.
1814+
--disable-interpret Disable interpret a config file.
17981815
--env <value...> Environment passed to the configuration when it is a function.
17991816
--node-env <value> Sets process.env.NODE_ENV to the specified value.
18001817
--progress [value] Print compilation progress during build.
@@ -2041,6 +2058,7 @@ Options:
20412058
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
20422059
--config-name <value...> Name of the configuration to use.
20432060
-m, --merge Merge two or more configurations using 'webpack-merge'.
2061+
--disable-interpret Disable interpret a config file.
20442062
--env <value...> Environment passed to the configuration when it is a function.
20452063
--node-env <value> Sets process.env.NODE_ENV to the specified value.
20462064
--progress [value] Print compilation progress during build.
@@ -2095,6 +2113,7 @@ Options:
20952113
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
20962114
--config-name <value...> Name of the configuration to use.
20972115
-m, --merge Merge two or more configurations using 'webpack-merge'.
2116+
--disable-interpret Disable interpret a config file.
20982117
--env <value...> Environment passed to the configuration when it is a function.
20992118
--node-env <value> Sets process.env.NODE_ENV to the specified value.
21002119
--progress [value] Print compilation progress during build.

0 commit comments

Comments
 (0)
Please sign in to comment.