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
Copy file name to clipboardExpand all lines: test/__snapshots__/CssMinimizerPlugin.test.js.snap.webpack4
+65-29
Original file line number
Diff line number
Diff line change
@@ -78,92 +78,128 @@ exports[`CssMinimizerPlugin should work and show minimized assets in stats: erro
78
78
79
79
exports[`CssMinimizerPlugin should work and show minimized assets in stats: warnings 1`] = `Array []`;
80
80
81
-
exports[`CssMinimizerPlugin should work in watch mode when "cache" is "false": assets 1`] = `
81
+
exports[`CssMinimizerPlugin should work and use cache by default: assets 1`] = `
82
82
Object {
83
+
"foo.css": "body{color:red}a{color:#00f}",
83
84
"style-2.css": "a{color:coral}",
84
85
"style.css": "a{color:red}",
85
86
}
86
87
`;
87
88
88
-
exports[`CssMinimizerPlugin should work in watch mode when "cache" is "false": assets 2`] = `
89
+
exports[`CssMinimizerPlugin should work and use cache by default: assets 2`] = `
89
90
Object {
91
+
"foo.css": "body{color:red}a{color:#00f}",
90
92
"style-2.css": "a{color:coral}",
91
93
"style.css": "a{color:red}",
92
94
}
93
95
`;
94
96
95
-
exports[`CssMinimizerPlugin should work in watch mode when "cache" is "false": errors 1`] = `Array []`;
97
+
exports[`CssMinimizerPlugin should work and use cache by default: errors 1`] = `Array []`;
96
98
97
-
exports[`CssMinimizerPlugin should work in watch mode when "cache" is "false": errors 2`] = `Array []`;
99
+
exports[`CssMinimizerPlugin should work and use cache by default: errors 2`] = `Array []`;
98
100
99
-
exports[`CssMinimizerPlugin should work in watch mode when "cache" is "false": warnings 1`] = `Array []`;
101
+
exports[`CssMinimizerPlugin should work and use cache by default: warnings 1`] = `Array []`;
100
102
101
-
exports[`CssMinimizerPlugin should work in watch mode when "cache" is "false": warnings 2`] = `Array []`;
103
+
exports[`CssMinimizerPlugin should work and use cache by default: warnings 2`] = `Array []`;
102
104
103
-
exports[`CssMinimizerPlugin should work in watch mode: assets 1`] = `
105
+
exports[`CssMinimizerPlugin should work and use cache when the "cache" option is "false": assets 1`] = `
104
106
Object {
107
+
"foo.css": "body{color:red}a{color:#00f}",
105
108
"style-2.css": "a{color:coral}",
106
109
"style.css": "a{color:red}",
107
110
}
108
111
`;
109
112
110
-
exports[`CssMinimizerPlugin should work in watch mode: assets 2`] = `
113
+
exports[`CssMinimizerPlugin should work and use cache when the "cache" option is "false": assets 2`] = `
111
114
Object {
115
+
"foo.css": "body{color:red}a{color:#00f}",
112
116
"style-2.css": "a{color:coral}",
113
117
"style.css": "a{color:red}",
114
118
}
115
119
`;
116
120
117
-
exports[`CssMinimizerPlugin should work in watch mode: errors 1`] = `Array []`;
118
-
119
-
exports[`CssMinimizerPlugin should work in watch mode: errors 2`] = `Array []`;
121
+
exports[`CssMinimizerPlugin should work and use cache when the "cache" option is "false": errors 1`] = `Array []`;
120
122
121
-
exports[`CssMinimizerPlugin should work in watch mode: warnings 1`] = `Array []`;
123
+
exports[`CssMinimizerPlugin should work and use cache when the "cache" option is "false": errors 2`] = `Array []`;
122
124
123
-
exports[`CssMinimizerPlugin should work in watch mode: warnings 2`] = `Array []`;
125
+
exports[`CssMinimizerPlugin should work and use cache when the "cache" option is "false": warnings 1`] = `Array []`;
124
126
125
-
exports[`CssMinimizerPlugin should work with assets using querystring: entry.css.map?v=test 1`] = `"{\\"version\\":3,\\"sources\\": [replaced for tests], \\"names\\":[],\\"mappings\\":\\"AAAA,KACE,SACF,CACA,EACE,UACF\\",\\"file\\":\\"entry.css?v=test\\",\\"sourcesContent\\":[\\"body {\\\\n color: red;\\\\n}\\\\na {\\\\n color: blue;\\\\n}\\"],\\"sourceRoot\\":\\"\\"}"`;
127
+
exports[`CssMinimizerPlugin should work and use cache when the "cache" option is "false": warnings 2`] = `Array []`;
126
128
127
-
exports[`CssMinimizerPlugin should work with assets using querystring: entry.css?v=test 1`] = `
128
-
"body{color:red}a{color:#00f}
129
-
/*# sourceMappingURL=entry.css.map?v=test*/"
129
+
exports[`CssMinimizerPlugin should work and use cache when the "cache" option is "true": assets 1`] = `
130
+
Object {
131
+
"foo.css": "body{color:red}a{color:#00f}",
132
+
"style-2.css": "a{color:coral}",
133
+
"style.css": "a{color:red}",
134
+
}
130
135
`;
131
136
132
-
exports[`CssMinimizerPlugin should work with child compilation: assets 1`] = `
137
+
exports[`CssMinimizerPlugin should work and use cache when the "cache" option is "true": assets 2`] = `
133
138
Object {
134
-
"entry.css": ".entry{text-align:center}",
139
+
"foo.css": "body{color:red}a{color:#00f}",
140
+
"style-2.css": "a{color:coral}",
141
+
"style.css": "a{color:red}",
135
142
}
136
143
`;
137
144
138
-
exports[`CssMinimizerPlugin should work with child compilation: errors 1`] = `Array []`;
145
+
exports[`CssMinimizerPlugin should work and use cache when the "cache" option is "true": errors 1`] = `Array []`;
139
146
140
-
exports[`CssMinimizerPlugin should work with child compilation: warnings 1`] = `Array []`;
147
+
exports[`CssMinimizerPlugin should work and use cache when the "cache" option is "true": errors 2`] = `Array []`;
148
+
149
+
exports[`CssMinimizerPlugin should work and use cache when the "cache" option is "true": warnings 1`] = `Array []`;
150
+
151
+
exports[`CssMinimizerPlugin should work and use cache when the "cache" option is "true": warnings 2`] = `Array []`;
141
152
142
-
exports[`CssMinimizerPlugin should work with custom clean-css minifier: assets 1`] = `
153
+
exports[`CssMinimizerPlugin should work with "clean-css" minifier: assets 1`] = `
143
154
Object {
144
155
"foo.css": "body{color:red}a{color:#00f}
145
156
/*# sourceMappingURL=foo.css.map*/",
146
157
}
147
158
`;
148
159
149
-
exports[`CssMinimizerPlugin should work with custom clean-css minifier: error 1`] = `Array []`;
160
+
exports[`CssMinimizerPlugin should work with "clean-css" minifier: error 1`] = `Array []`;
150
161
151
-
exports[`CssMinimizerPlugin should work with custom clean-css minifier: foo.css.map 1`] = `"{\\"version\\":3,\\"sources\\": [replaced for tests], \\"names\\":[],\\"mappings\\":\\"AAAA,KACE,MAAO,IAET,EACE,MAAO\\",\\"file\\":\\"foo.css\\",\\"sourcesContent\\":[\\"body {\\\\n color: red;\\\\n}\\\\na {\\\\n color: blue;\\\\n}\\\\n\\"],\\"sourceRoot\\":\\"\\"}"`;
162
+
exports[`CssMinimizerPlugin should work with "clean-css" minifier: source maps 1`] = `
exports[`CssMinimizerPlugin should work with "csso" minifier: warning 1`] = `Array []`;
186
+
187
+
exports[`CssMinimizerPlugin should work with assets using querystring: entry.css.map?v=test 1`] = `"{\\"version\\":3,\\"sources\\":[\\"webpack:///foo.css\\"],\\"names\\":[],\\"mappings\\":\\"AAAA,KACE,SACF,CACA,EACE,UACF\\",\\"file\\":\\"entry.css?v=test\\",\\"sourcesContent\\":[\\"body {\\\\n color: red;\\\\n}\\\\na {\\\\n color: blue;\\\\n}\\"],\\"sourceRoot\\":\\"\\"}"`;
188
+
189
+
exports[`CssMinimizerPlugin should work with assets using querystring: entry.css?v=test 1`] = `
190
+
"body{color:red}a{color:#00f}
191
+
/*# sourceMappingURL=entry.css.map?v=test*/"
192
+
`;
193
+
194
+
exports[`CssMinimizerPlugin should work with child compilation: assets 1`] = `
195
+
Object {
196
+
"entry.css": ".entry{text-align:center}",
197
+
}
198
+
`;
163
199
164
-
exports[`CssMinimizerPlugin should work with custom csso minifier: foo.css.map 1`] = `"{\\"version\\":3,\\"sources\\": [replaced for tests], \\"names\\":[],\\"mappings\\":\\"AAAA,I,CACE,e,CCEA,S,CADF,M,CAGI,iB\\",\\"file\\":\\"foo.css\\",\\"sourcesContent\\":[\\"body {\\\\n font-weight: bold;\\\\n}\\",\\"@import 'bar';\\\\n\\\\nbody {\\\\n color: red;\\\\n a {\\\\n text-align: center;\\\\n }\\\\n}\\"],\\"sourceRoot\\":\\"\\"}"`;
200
+
exports[`CssMinimizerPlugin should work with child compilation: errors 1`] = `Array []`;
165
201
166
-
exports[`CssMinimizerPlugin should work with custom csso minifier: warning 1`] = `Array []`;
202
+
exports[`CssMinimizerPlugin should work with child compilation: warnings 1`] = `Array []`;
167
203
168
204
exports[`CssMinimizerPlugin should write stdout and stderr of workers to stdout and stderr of main process in parallel mode: assets 1`] = `
0 commit comments