@@ -132,6 +132,18 @@ Error: minimizer function doesn't return the 'code' property or result is not a
132
132
133
133
exports [` "minify" option should work throw an error if minimizer function doesn't return: warning 1` ] = ` Array []` ;
134
134
135
+ exports [` "minify" option should work with "CssMinimizerPlugin.cleanCssMinify" minifier and generate source maps #2: assets 1` ] = `
136
+ Object {
137
+ " foo/foo.css" : " body{font-weight:700}body{color:red}body a{text-align:center}
138
+ /* # sourceMappingURL=foo.css.map*/ " ,
139
+ " foo/foo.css.map" : " {\\ " version \\" :3,\\ " file \\" :\\ " foo / foo .css \\" ,\\ " mappings \\" :\\ " AAAA ,KACE ,YAAa ,ICCf ,KACE ,MAAO ,IACP ,OACE ,WAAY \\" ,\\ " sources \\" :[\\ " webpack :// /./sourcemap/bar.scss\\",\\"webpack:///./sourcemap/foo.scss\\"],\\"sourcesContent\\":[\\"body {\\\\n font-weight: bold;\\\\n}\\",\\"@import 'bar';\\\\n\\\\nbody {\\\\n color: red;\\\\n a {\\\\n text-align: center;\\\\n }\\\\n}\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}",
140
+ }
141
+ ` ;
142
+
143
+ exports [` "minify" option should work with "CssMinimizerPlugin.cleanCssMinify" minifier and generate source maps #2: error 1` ] = ` Array []` ;
144
+
145
+ exports [` "minify" option should work with "CssMinimizerPlugin.cleanCssMinify" minifier and generate source maps #2: warning 1` ] = ` Array []` ;
146
+
135
147
exports [` "minify" option should work with "CssMinimizerPlugin.cleanCssMinify" minifier and generate source maps: assets 1` ] = `
136
148
Object {
137
149
" foo.css" : " body{color:red}a{color:#00f}
@@ -154,21 +166,43 @@ exports[`"minify" option should work with "CssMinimizerPlugin.cleanCssMinify" mi
154
166
155
167
exports [` "minify" option should work with "CssMinimizerPlugin.cleanCssMinify" minifier: warning 1` ] = ` Array []` ;
156
168
157
- exports [` "minify" option should work with "CssMinimizerPlugin.cssnanoMinify" and generate source maps: assets 1` ] = `
169
+ exports [` "minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier and generate source maps #2: assets 1` ] = `
170
+ Object {
171
+ " foo/foo.css" : " body{color:red;font-weight:700}body a{text-align:center}
172
+ /* # sourceMappingURL=foo.css.map*/ " ,
173
+ " foo/foo.css.map" : " {\\ " version \\" :3,\\ " file \\" :\\ " foo / foo .css \\" ,\\ " mappings \\" :\\ " AAAA ,KCGE ,SAAU ,CDFV ,eCCF ,CAEE ,OACE ,iBAIJ \\" ,\\ " sources \\" :[\\ " webpack :// /./sourcemap/bar.scss\\",\\"webpack:///./sourcemap/foo.scss\\"],\\"sourcesContent\\":[\\"body {\\\\n font-weight: bold;\\\\n}\\",\\"@import 'bar';\\\\n\\\\nbody {\\\\n color: red;\\\\n a {\\\\n text-align: center;\\\\n }\\\\n}\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}",
174
+ }
175
+ ` ;
176
+
177
+ exports [` "minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier and generate source maps #2: error 1` ] = ` Array []` ;
178
+
179
+ exports [` "minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier and generate source maps #2: warning 1` ] = ` Array []` ;
180
+
181
+ exports [` "minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier and generate source maps: assets 1` ] = `
158
182
Object {
159
183
" foo.css" : " body{color:red;font-weight:700}body a{text-align:center}
160
184
/* # sourceMappingURL=foo.css.map*/ " ,
161
185
" foo.css.map" : " {\\ " version \\" :3,\\ " file \\" :\\ " foo .css \\" ,\\ " mappings \\" :\\ " AAAA ,KCGE ,SAAU ,CDFV ,eCCF ,CAEE ,OACE ,iBAIJ \\" ,\\ " sources \\" :[\\ " webpack :// /./sourcemap/bar.scss\\",\\"webpack:///./sourcemap/foo.scss\\"],\\"sourcesContent\\":[\\"body {\\\\n font-weight: bold;\\\\n}\\",\\"@import 'bar';\\\\n\\\\nbody {\\\\n color: red;\\\\n a {\\\\n text-align: center;\\\\n }\\\\n}\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}",
162
186
}
163
187
` ;
164
188
165
- exports [` "minify" option should work with "CssMinimizerPlugin.cssnanoMinify" and generate source maps: error 1` ] = ` Array []` ;
189
+ exports [` "minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier and generate source maps: error 1` ] = ` Array []` ;
190
+
191
+ exports [` "minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier and generate source maps: warning 1` ] = ` Array []` ;
192
+
193
+ exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier and parser option as "String": entry.js.map 1`] = `"{\\"version\\":3,\\"file\\":\\"entry.js\\",\\"mappings\\":\\";;UAAA;UACA;;;;;WCDA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;ACNO\\",\\"sources\\":[\\"webpack:///webpack/bootstrap\\",\\"webpack:///webpack/runtime/define property getters\\",\\"webpack:///webpack/runtime/hasOwnProperty shorthand\\",\\"webpack:///webpack/runtime/make namespace object\\",\\"webpack:///./sugarss.js\\"],\\"sourcesContent\\":[\\"// The require scope\\\\nvar __webpack_require__ = {};\\\\n\\\\n\\",\\"// define getter functions for harmony exports\\\\n__webpack_require__.d = (exports, definition) => {\\\\n\\\\tfor(var key in definition) {\\\\n\\\\t\\\\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\\\\n\\\\t\\\\t\\\\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\\\\n\\\\t\\\\t}\\\\n\\\\t}\\\\n};\\",\\"__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))\\",\\"// define __esModule on exports\\\\n__webpack_require__.r = (exports) => {\\\\n\\\\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\\\\n\\\\t\\\\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\\\\n\\\\t}\\\\n\\\\tObject.defineProperty(exports, '__esModule', { value: true });\\\\n};\\",\\"export const foo = 'foo';\\\\n\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}"`;
166
194
167
- exports [` "minify" option should work with "CssMinimizerPlugin.cssnanoMinify" and generate source maps: warning 1` ] = ` Array []` ;
195
+ exports [` "minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier and parser option as "String": index.sss 1` ] = ` "a{ color :#000 } "` ;
196
+
197
+ exports [` "minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier: assets 1` ] = `
198
+ Object {
199
+ " foo.css" : " body{color:red;font-weight:700}body a{text-align:center}" ,
200
+ }
201
+ ` ;
168
202
169
- exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify" and parser option as "String": entry.js.map 1`] = `"{\\"version\\":3,\\"file\\":\\"entry.js\\",\\"mappings\\":\\";;UAAA;UACA;;;;;WCDA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;ACNO\\",\\"sources\\":[\\"webpack:///webpack/bootstrap\\",\\"webpack:///webpack/runtime/define property getters\\",\\"webpack:///webpack/runtime/hasOwnProperty shorthand\\",\\"webpack:///webpack/runtime/make namespace object\\",\\"webpack:///./sugarss.js\\"],\\"sourcesContent\\":[\\"// The require scope\\\\nvar __webpack_require__ = {};\\\\n\\\\n\\",\\"// define getter functions for harmony exports\\\\n__webpack_require__.d = (exports, definition) => {\\\\n\\\\tfor(var key in definition) {\\\\n\\\\t\\\\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\\\\n\\\\t\\\\t\\\\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\\\\n\\\\t\\\\t}\\\\n\\\\t}\\\\n};\\",\\"__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))\\",\\"// define __esModule on exports\\\\n__webpack_require__.r = (exports) => {\\\\n\\\\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\\\\n\\\\t\\\\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\\\\n\\\\t}\\\\n\\\\tObject.defineProperty(exports, '__esModule', { value: true });\\\\n};\\",\\"export const foo = 'foo';\\\\n\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}"`;
203
+ exports [` "minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier: error 1` ] = ` Array []` ;
170
204
171
- exports [` "minify" option should work with "CssMinimizerPlugin.cssnanoMinify" and parser option as "String": index.sss 1` ] = ` "a { color :# 000 } " ` ;
205
+ exports [` "minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier: warning 1` ] = ` Array [] ` ;
172
206
173
207
exports [` "minify" option should work with "CssMinimizerPlugin.cssnanoMinify", "CssMinimizerPlugin.cssoMinify" and "CssMinimizerPlugin.cleanCssMinify" minifiers and generate source maps: assets 1` ] = `
174
208
Object {
@@ -192,27 +226,29 @@ exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify", "
192
226
193
227
exports [` "minify" option should work with "CssMinimizerPlugin.cssnanoMinify", "CssMinimizerPlugin.cssoMinify" and "CssMinimizerPlugin.cleanCssMinify" minifiers: warning 1` ] = ` Array []` ;
194
228
195
- exports [` "minify" option should work with "CssMinimizerPlugin.cssnanoMinify" : assets 1` ] = `
229
+ exports [` "minify" option should work with "CssMinimizerPlugin.cssoMinify" minifier and generate source map : assets 1` ] = `
196
230
Object {
197
- " foo.css" : " body{color:red;font-weight:700}body a{text-align:center}" ,
231
+ " foo.css" : " body{font-weight:700;color:red}body a{text-align:center}
232
+ /* # sourceMappingURL=foo.css.map*/ " ,
233
+ " foo.css.map" : " {\\ " version \\" :3,\\ " file \\" :\\ " foo .css \\" ,\\ " mappings \\" :\\ " AAAA ,I ,CACE ,e ,CCEA ,S ,CACA ,M ,CACE ,iB \\" ,\\ " sources \\" :[\\ " webpack :// /./sourcemap/bar.scss\\",\\"webpack:///./sourcemap/foo.scss\\"],\\"sourcesContent\\":[\\"body {\\\\n font-weight: bold;\\\\n}\\",\\"@import 'bar';\\\\n\\\\nbody {\\\\n color: red;\\\\n a {\\\\n text-align: center;\\\\n }\\\\n}\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}",
198
234
}
199
235
` ;
200
236
201
- exports [` "minify" option should work with "CssMinimizerPlugin.cssnanoMinify" : error 1` ] = ` Array []` ;
237
+ exports [` "minify" option should work with "CssMinimizerPlugin.cssoMinify" minifier and generate source map : error 1` ] = ` Array []` ;
202
238
203
- exports [` "minify" option should work with "CssMinimizerPlugin.cssnanoMinify" : warning 1` ] = ` Array []` ;
239
+ exports [` "minify" option should work with "CssMinimizerPlugin.cssoMinify" minifier and generate source map : warning 1` ] = ` Array []` ;
204
240
205
- exports [` "minify" option should work with "CssMinimizerPlugin.cssoMinify" minifier and generate source map : assets 1` ] = `
241
+ exports [` "minify" option should work with "CssMinimizerPlugin.cssoMinify" minifier and generate source maps #2 : assets 1` ] = `
206
242
Object {
207
- " foo.css" : " body{font-weight:700;color:red}body a{text-align:center}
243
+ " foo/foo .css" : " body{font-weight:700;color:red}body a{text-align:center}
208
244
/* # sourceMappingURL=foo.css.map*/ " ,
209
- " foo.css.map" : " {\\ " version \\" :3,\\ " file \\" :\\ " foo .css \\" ,\\ " mappings \\" :\\ " AAAA ,I ,CACE ,e ,CCEA ,S ,CACA ,M ,CACE ,iB \\" ,\\ " sources \\" :[\\ " webpack :// /./sourcemap/bar.scss\\",\\"webpack:///./sourcemap/foo.scss\\"],\\"sourcesContent\\":[\\"body {\\\\n font-weight: bold;\\\\n}\\",\\"@import 'bar';\\\\n\\\\nbody {\\\\n color: red;\\\\n a {\\\\n text-align: center;\\\\n }\\\\n}\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}",
245
+ " foo/foo .css.map" : " {\\ " version \\" :3,\\ " file \\" :\\ " foo / foo .css \\" ,\\ " mappings \\" :\\ " AAAA ,I ,CACE ,e ,CCEA ,S ,CACA ,M ,CACE ,iB \\" ,\\ " sources \\" :[\\ " webpack :// /./sourcemap/bar.scss\\",\\"webpack:///./sourcemap/foo.scss\\"],\\"sourcesContent\\":[\\"body {\\\\n font-weight: bold;\\\\n}\\",\\"@import 'bar';\\\\n\\\\nbody {\\\\n color: red;\\\\n a {\\\\n text-align: center;\\\\n }\\\\n}\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}",
210
246
}
211
247
` ;
212
248
213
- exports [` "minify" option should work with "CssMinimizerPlugin.cssoMinify" minifier and generate source map : error 1` ] = ` Array []` ;
249
+ exports [` "minify" option should work with "CssMinimizerPlugin.cssoMinify" minifier and generate source maps #2 : error 1` ] = ` Array []` ;
214
250
215
- exports [` "minify" option should work with "CssMinimizerPlugin.cssoMinify" minifier and generate source map : warning 1` ] = ` Array []` ;
251
+ exports [` "minify" option should work with "CssMinimizerPlugin.cssoMinify" minifier and generate source maps #2 : warning 1` ] = ` Array []` ;
216
252
217
253
exports [` "minify" option should work with "CssMinimizerPlugin.cssoMinify" minifier: assets 1` ] = `
218
254
Object {
@@ -242,6 +278,19 @@ Unexpected \\"calc(\\"",
242
278
]
243
279
` ;
244
280
281
+ exports [` "minify" option should work with "CssMinimizerPlugin.esbuildMinify" minifier and generate source maps #2: assets 1` ] = `
282
+ Object {
283
+ " foo/foo.css" : " body{font-weight:bold}body{color:red}body a{text-align:center}
284
+
285
+ /* # sourceMappingURL=foo.css.map*/ " ,
286
+ " foo/foo.css.map" : " {\\ " version \\" :3,\\ " file \\" :\\ " foo / foo .css \\" ,\\ " mappings \\" :\\ " AAAA ,KACE ,iBCCF ,KACE ,UACA ,OACE \\" ,\\ " sources \\" :[\\ " webpack :// /./sourcemap/bar.scss\\",\\"webpack:///./sourcemap/foo.scss\\"],\\"sourcesContent\\":[\\"body {\\\\n font-weight: bold;\\\\n}\\",\\"@import 'bar';\\\\n\\\\nbody {\\\\n color: red;\\\\n a {\\\\n text-align: center;\\\\n }\\\\n}\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}",
287
+ }
288
+ ` ;
289
+
290
+ exports [` "minify" option should work with "CssMinimizerPlugin.esbuildMinify" minifier and generate source maps #2: error 1` ] = ` Array []` ;
291
+
292
+ exports [` "minify" option should work with "CssMinimizerPlugin.esbuildMinify" minifier and generate source maps #2: warning 1` ] = ` Array []` ;
293
+
245
294
exports [` "minify" option should work with "CssMinimizerPlugin.esbuildMinify" minifier and generate source maps: assets 1` ] = `
246
295
Object {
247
296
" foo.css" : " body{color:red}a{color:#00f}
0 commit comments