You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exports[`"bail" option should log warning in case of multiple compilers: stderr 1`] = `"<w> [webpack-cli] You are using \\"bail\\" with \\"watch\\". \\"bail\\" will still exit webpack when the first error is found."`;
4
+
5
+
exports[`"bail" option should log warning in case of multiple compilers: stdout 1`] = `
6
+
"Hash: <hash>
7
+
Version: webpack x.x.x
8
+
Child first:
9
+
Hash: <hash>
10
+
Time: <compile time>
11
+
Built at: <built time>
12
+
Asset Size Chunks Chunk Names
13
+
./dist-first.js 3.77 KiB main [emitted] main
14
+
Entrypoint main = ./dist-first.js
15
+
[./src/first.js] 50 bytes {main} [built]
16
+
Child second:
17
+
Hash: <hash>
18
+
Time: <compile time>
19
+
Built at: <built time>
20
+
Asset Size Chunks Chunk Names
21
+
./dist-second.js 3.77 KiB main [emitted] main
22
+
Entrypoint main = ./dist-second.js
23
+
[./src/second.js] 51 bytes {main} [built]"
24
+
`;
25
+
26
+
exports[`"bail" option should log warning in watch mode: stderr 1`] = `"<w> [webpack-cli] You are using \\"bail\\" with \\"watch\\". \\"bail\\" will still exit webpack when the first error is found."`;
27
+
28
+
exports[`"bail" option should log warning in watch mode: stderr 2`] = `"<w> [webpack-cli] You are using \\"bail\\" with \\"watch\\". \\"bail\\" will still exit webpack when the first error is found."`;
29
+
30
+
exports[`"bail" option should log warning in watch mode: stdout 1`] = `
31
+
"Hash: <hash>
32
+
Version: webpack x.x.x
33
+
Time: <compile time>
34
+
Built at: <built time>
35
+
Asset Size Chunks Chunk Names
36
+
main.js 3.77 KiB main [emitted] main
37
+
Entrypoint main = main.js
38
+
[./src/first.js] 50 bytes {main} [built]"
39
+
`;
40
+
41
+
exports[`"bail" option should log warning in watch mode: stdout 2`] = `
42
+
"Hash: <hash>
43
+
Version: webpack x.x.x
44
+
Time: <compile time>
45
+
Built at: <built time>
46
+
Asset Size Chunks Chunk Names
47
+
main.js 3.77 KiB main [emitted] main
48
+
Entrypoint main = main.js
49
+
[./src/first.js] 50 bytes {main} [built]"
50
+
`;
51
+
52
+
exports[`"bail" option should not log warning in not watch mode without the "watch" option: stderr 1`] = `""`;
53
+
54
+
exports[`"bail" option should not log warning in not watch mode without the "watch" option: stdout 1`] = `
55
+
"Hash: <hash>
56
+
Version: webpack x.x.x
57
+
Time: <compile time>
58
+
Built at: <built time>
59
+
Asset Size Chunks Chunk Names
60
+
main.js 3.77 KiB main [emitted] main
61
+
Entrypoint main = main.js
62
+
[./src/first.js] 50 bytes {main} [built]"
63
+
`;
64
+
65
+
exports[`"bail" option should not log warning without the "bail" option: stderr 1`] = `""`;
66
+
67
+
exports[`"bail" option should not log warning without the "bail" option: stderr 2`] = `""`;
68
+
69
+
exports[`"bail" option should not log warning without the "bail" option: stdout 1`] = `
70
+
"Hash: <hash>
71
+
Version: webpack x.x.x
72
+
Time: <compile time>
73
+
Built at: <built time>
74
+
Asset Size Chunks Chunk Names
75
+
main.js 3.77 KiB main [emitted] main
76
+
Entrypoint main = main.js
77
+
[./src/first.js] 50 bytes {main} [built]"
78
+
`;
79
+
80
+
exports[`"bail" option should not log warning without the "bail" option: stdout 2`] = `
exports[`"bail" option should log warning in case of multiple compilers: stderr 1`] = `"<w> [webpack-cli] You are using \\"bail\\" with \\"watch\\". \\"bail\\" will still exit webpack when the first error is found."`;
4
+
5
+
exports[`"bail" option should log warning in case of multiple compilers: stdout 1`] = `
second (webpack x.x.x) compiled successfully in <compiler time> ms"
15
+
`;
16
+
17
+
exports[`"bail" option should log warning in watch mode: stderr 1`] = `"<w> [webpack-cli] You are using \\"bail\\" with \\"watch\\". \\"bail\\" will still exit webpack when the first error is found."`;
18
+
19
+
exports[`"bail" option should log warning in watch mode: stderr 2`] = `"<w> [webpack-cli] You are using \\"bail\\" with \\"watch\\". \\"bail\\" will still exit webpack when the first error is found."`;
20
+
21
+
exports[`"bail" option should log warning in watch mode: stdout 1`] = `
22
+
"asset main.js 217 bytes [compared for emit] (name: main)
23
+
./src/first.js 50 bytes [built] [code generated]
24
+
webpack x.x.x compiled successfully in <compiler time> ms"
25
+
`;
26
+
27
+
exports[`"bail" option should log warning in watch mode: stdout 2`] = `
28
+
"asset main.js 217 bytes [compared for emit] (name: main)
29
+
./src/first.js 50 bytes [built] [code generated]
30
+
webpack x.x.x compiled successfully in <compiler time> ms"
31
+
`;
32
+
33
+
exports[`"bail" option should not log warning in not watch mode without the "watch" option: stderr 1`] = `""`;
34
+
35
+
exports[`"bail" option should not log warning in not watch mode without the "watch" option: stdout 1`] = `
36
+
"asset main.js 217 bytes [emitted] (name: main)
37
+
./src/first.js 50 bytes [built] [code generated]
38
+
webpack x.x.x compiled successfully in <compiler time> ms"
39
+
`;
40
+
41
+
exports[`"bail" option should not log warning without the "bail" option: stderr 1`] = `""`;
42
+
43
+
exports[`"bail" option should not log warning without the "bail" option: stderr 2`] = `""`;
44
+
45
+
exports[`"bail" option should not log warning without the "bail" option: stdout 1`] = `
46
+
"asset main.js 217 bytes [compared for emit] (name: main)
47
+
./src/first.js 50 bytes [built] [code generated]
48
+
webpack x.x.x compiled successfully in <compiler time> ms"
49
+
`;
50
+
51
+
exports[`"bail" option should not log warning without the "bail" option: stdout 2`] = `
52
+
"asset main.js 217 bytes [compared for emit] (name: main)
53
+
./src/first.js 50 bytes [built] [code generated]
54
+
webpack x.x.x compiled successfully in <compiler time> ms"
exports[`basic should log supplied config with watch: stderr 1`] = `
4
+
" [webpack-cli] Compiler starting...
5
+
[webpack-cli] Compiler is using config: '<cwd>/test/watch/basic/log.config.js'
6
+
[webpack-cli] Compiler finished
7
+
"
8
+
`;
9
+
10
+
exports[`basic should recompile upon file change using the \`command\` option and the \`--no-watch\` option and log warning: stderr 1`] = `
11
+
"[webpack-cli] Error: Unknown option '--no-watch'
12
+
[webpack-cli] Run 'webpack --help' to see available commands and options"
13
+
`;
14
+
15
+
exports[`basic should recompile upon file change using the \`command\` option and the \`--no-watch\` option and log warning: stdout 1`] = `""`;
16
+
17
+
exports[`basic should recompile upon file change using the \`command\` option and the \`--watch\` option and log warning: stderr 1`] = `
18
+
"[webpack-cli] Error: Unknown option '--watch'
19
+
[webpack-cli] Run 'webpack --help' to see available commands and options"
20
+
`;
21
+
22
+
exports[`basic should recompile upon file change using the \`command\` option and the \`--watch\` option and log warning: stdout 1`] = `""`;
23
+
24
+
exports[`basic should work with negative value: stderr 1`] = `""`;
25
+
26
+
exports[`basic should work with negative value: stdout 1`] = `
27
+
"Hash: <hash>
28
+
Version: webpack x.x.x
29
+
Time: <compile time>
30
+
Built at: <built time>
31
+
Asset Size Chunks Chunk Names
32
+
main.js 960 bytes 0 [emitted] main
33
+
Entrypoint main = main.js
34
+
[0] ./src/index.js 32 bytes {0} [built]
35
+
36
+
WARNING in configuration
37
+
The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment.
38
+
You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/configuration/mode/"
0 commit comments