@@ -132,6 +132,18 @@ Error: minimizer function doesn't return the 'code' property or result is not a
132132
133133exports [` "minify" option should work throw an error if minimizer function doesn't return: warning 1` ] = ` Array []` ;
134134
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+
135147exports [` "minify" option should work with "CssMinimizerPlugin.cleanCssMinify" minifier and generate source maps: assets 1` ] = `
136148Object {
137149 " foo.css" : " body{color:red}a{color:#00f}
@@ -154,21 +166,43 @@ exports[`"minify" option should work with "CssMinimizerPlugin.cleanCssMinify" mi
154166
155167exports [` "minify" option should work with "CssMinimizerPlugin.cleanCssMinify" minifier: warning 1` ] = ` Array []` ;
156168
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` ] = `
158182Object {
159183 " foo.css" : " body{color:red;font-weight:700}body a{text-align:center}
160184/* # sourceMappingURL=foo.css.map*/ " ,
161185 " 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\\":\\"\\"}",
162186}
163187` ;
164188
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\\":\\"\\"}"`;
166194
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+ ` ;
168202
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 []` ;
170204
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 [] ` ;
172206
173207exports [` "minify" option should work with "CssMinimizerPlugin.cssnanoMinify", "CssMinimizerPlugin.cssoMinify" and "CssMinimizerPlugin.cleanCssMinify" minifiers and generate source maps: assets 1` ] = `
174208Object {
@@ -192,27 +226,29 @@ exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify", "
192226
193227exports [` "minify" option should work with "CssMinimizerPlugin.cssnanoMinify", "CssMinimizerPlugin.cssoMinify" and "CssMinimizerPlugin.cleanCssMinify" minifiers: warning 1` ] = ` Array []` ;
194228
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` ] = `
196230Object {
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\\":\\"\\"}",
198234}
199235` ;
200236
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 []` ;
202238
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 []` ;
204240
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` ] = `
206242Object {
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}
208244/* # 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\\":\\"\\"}",
210246}
211247` ;
212248
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 []` ;
214250
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 []` ;
216252
217253exports [` "minify" option should work with "CssMinimizerPlugin.cssoMinify" minifier: assets 1` ] = `
218254Object {
@@ -242,6 +278,19 @@ Unexpected \\"calc(\\"",
242278]
243279` ;
244280
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+
245294exports [` "minify" option should work with "CssMinimizerPlugin.esbuildMinify" minifier and generate source maps: assets 1` ] = `
246295Object {
247296 " foo.css" : " body{color:red}a{color:#00f}
0 commit comments