File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ You may have noticed that few webpack configurations look exactly alike. This is
12
12
13
13
Because it's a standard Node.js CommonJS module, you ** can do the following** :
14
14
15
- - import other files via ` require(...) `
15
+ - Import other files via ` require(...) `
16
16
- use utilities on npm via ` require(...) `
17
17
- use JavaScript control flow expressions, e.g. the ` ?: ` operator
18
18
- use constants or variables for often used values
@@ -22,7 +22,7 @@ Use these features when appropriate.
22
22
23
23
While they are technically feasible, ** the following practices should be avoided** :
24
24
25
- - Access CLI arguments , when using the webpack CLI (instead write your own CLI , or [use ` --env ` ](/configuration / configuration - types / ))
25
+ - Access CLI arguments, when using the webpack CLI (instead write your own CLI, or [ use ` --env ` ] ( /api/cli/#env ) )
26
26
- Export non - deterministic values (calling webpack twice should result in the same output files )
27
27
- Write long configurations (instead split the configuration into multiple files)
28
28
You can’t perform that action at this time.
0 commit comments