From 00e9513f5052b3d5a79b2a0e2c54a12d15562642 Mon Sep 17 00:00:00 2001 From: Christoph Bessei <28066477+christoph-bessei@users.noreply.github.com> Date: Tue, 3 Nov 2020 12:58:55 +0100 Subject: [PATCH] Dist only mini-css-extract-plugin which fixes SSR issues: https://github.com/webpack-contrib/mini-css-extract-plugin/issues/90#issuecomment-392968392 --- .editorconfig | 12 - .eslintignore | 6 - .eslintrc.js | 5 - .gitattributes | 5 - .github/CODEOWNERS | 6 - .github/CONTRIBUTING.md | 160 - .github/FUNDING.yml | 1 - .github/ISSUE_TEMPLATE.md | 16 - .github/ISSUE_TEMPLATE/BUG.md | 50 - .github/ISSUE_TEMPLATE/DOCS.md | 28 - .github/ISSUE_TEMPLATE/FEATURE.md | 25 - .github/ISSUE_TEMPLATE/MODIFICATION.md | 27 - .github/ISSUE_TEMPLATE/SUPPORT.md | 8 - .github/PULL_REQUEST_TEMPLATE.md | 35 - .github/workflows/nodejs.yml | 95 - .gitignore | 19 - .prettierignore | 7 - .prettierrc.js | 1 - CHANGELOG.md | 119 - README.md | 683 +- babel.config.js | 34 - commitlint.config.js | 3 - dist/CssDependency.js | 34 + dist/cjs.js | 3 + {src => dist}/hmr/hotModuleReplacement.js | 117 +- dist/index.js | 447 + dist/loader.js | 203 + dist/options.json | 22 + husky.config.js | 6 - jest.config.js | 6 - lint-staged.config.js | 4 - package-lock.json | 15002 ---------------- package.json | 174 +- setupTest.js | 1 - src/CssDependency.js | 76 - src/CssDependencyTemplate.js | 4 - src/CssLoadingRuntimeModule.js | 201 - src/CssModule.js | 148 - src/CssModuleFactory.js | 8 - src/cjs.js | 1 - src/hmr/normalize-url.js | 38 - src/index.js | 711 - src/loader-options.json | 29 - src/loader.js | 265 - src/plugin-options.json | 54 - src/utils.js | 57 - test/HMR.test.js | 309 - test/TestCache.test.js | 297 - test/TestCases.test.js | 225 - test/TestMemoryFS.test.js | 51 - test/__snapshots__/HMR.test.js.snap | 43 - .../attributes-option.test.js.snap | 37 - test/__snapshots__/insert-option.test.js.snap | 55 - .../__snapshots__/linkTag-option.test.js.snap | 55 - .../validate-loader-options.test.js.snap | 27 - .../validate-plugin-options.test.js.snap | 97 - test/attributes-option.test.js | 74 - test/cases/at-import/a.css | 9 - test/cases/at-import/aa.css | 3 - test/cases/at-import/ab.css | 3 - test/cases/at-import/ac.css | 3 - test/cases/at-import/ad.css | 3 - test/cases/at-import/ae.css | 3 - test/cases/at-import/b.css | 6 - test/cases/at-import/ba.css | 3 - test/cases/at-import/bb.css | 3 - test/cases/at-import/expected/main.css | 36 - test/cases/at-import/index.js | 2 - test/cases/at-import/webpack.config.js | 18 - .../cases/chunkFilename-as-function/async.css | 3 - .../expected/webpack-4/1.async.css | 4 - .../expected/webpack-4/main.css | 4 - .../expected/webpack-5/0.async.css | 4 - .../expected/webpack-5/main.css | 4 - test/cases/chunkFilename-as-function/index.js | 4 - .../cases/chunkFilename-as-function/style.css | 3 - .../webpack.config.js | 24 - test/cases/chunkFilename/async.css | 3 - .../expected/webpack-4/1.async.css | 4 - .../chunkFilename/expected/webpack-4/main.css | 4 - .../expected/webpack-5/0.async.css | 4 - .../chunkFilename/expected/webpack-5/main.css | 4 - test/cases/chunkFilename/index.js | 4 - test/cases/chunkFilename/style.css | 3 - test/cases/chunkFilename/webpack.config.js | 19 - .../commonjs-module-syntax/expected/main.css | 12 - test/cases/commonjs-module-syntax/index.js | 1 - test/cases/commonjs-module-syntax/style.css | 11 - .../commonjs-module-syntax/webpack.config.js | 32 - test/cases/composes-async/async-1.css | 4 - test/cases/composes-async/async-2.css | 3 - .../cases/composes-async/expected/async-1.css | 4 - test/cases/composes-async/expected/dedupe.css | 4 - test/cases/composes-async/index.js | 4 - test/cases/composes-async/webpack.config.js | 41 - .../contenthash-multiple-entries/entryA.js | 2 - .../contenthash-multiple-entries/entryB.js | 1 - .../contenthash-multiple-entries/entryC.js | 0 .../contenthash-multiple-entries/entryD.js | 2 - .../contenthash-multiple-entries/entryE.js | 2 - .../webpack-4/96236f7f51b351aabd20.css | 4 - .../webpack-4/f22bc5a793a5a86ad253.css | 8 - .../webpack-5/0f36361d4b50faed4928.css | 4 - .../webpack-5/35dbeb8e6cb82c82c80c.css | 8 - .../contenthash-multiple-entries/styleA.css | 3 - .../contenthash-multiple-entries/styleB.css | 3 - .../contenthash-multiple-entries/styleC.css | 3 - .../contenthash-multiple-entries/styleD.css | 3 - .../webpack.config.js | 27 - .../webpack-4/1.main.c4d90d38e7a606ae4d4c.css | 4 - .../webpack-4/2.main.64d1032b1547f22458a7.css | 4 - .../webpack-5/1.main.6521a335718b303aa5f2.css | 4 - .../webpack-5/2.main.7a77891ac7cc86d3d7b7.css | 4 - test/cases/contenthash/index.js | 2 - test/cases/contenthash/style1.css | 3 - test/cases/contenthash/style2.css | 3 - test/cases/contenthash/webpack.config.js | 28 - test/cases/css-import/a.css | 3 - test/cases/css-import/b.css | 9 - test/cases/css-import/c.css | 9 - test/cases/css-import/expected/main.css | 24 - test/cases/css-import/index.css | 2 - test/cases/css-import/webpack.config.js | 18 - test/cases/default-options/expected/main.css | 4 - test/cases/default-options/index.js | 1 - test/cases/default-options/style.css | 3 - test/cases/default-options/webpack.config.js | 14 - .../entryA.js | 1 - .../entryB.js | 1 - .../entryC.js | 1 - .../entryD.js | 1 - .../expected/webpack-5/common.css | 8 - .../expected/webpack-5/common.js | 183 - .../expected/webpack-5/entry1.css | 8 - .../expected/webpack-5/entry1.js | 45 - .../styleA.css | 3 - .../styleB.css | 3 - .../styleC.css | 3 - .../styleD.css | 3 - .../test.filter.js | 5 - .../webpack.config.js | 21 - test/cases/dependOn/entryA.js | 1 - test/cases/dependOn/entryB.js | 1 - .../dependOn/expected/webpack-5/common.css | 4 - .../dependOn/expected/webpack-5/common.js | 165 - .../dependOn/expected/webpack-5/entry1.css | 4 - .../dependOn/expected/webpack-5/entry1.js | 24 - test/cases/dependOn/styleA.css | 3 - test/cases/dependOn/styleB.css | 3 - test/cases/dependOn/test.filter.js | 5 - test/cases/dependOn/webpack.config.js | 21 - .../expected/main.css | 6 - .../expected/main.css.map | 1 - .../index.js | 1 - .../style.css | 3 - .../webpack.config.js | 27 - .../devtool-source-map/expected/main.css | 6 - .../devtool-source-map/expected/main.css.map | 1 - test/cases/devtool-source-map/index.js | 1 - test/cases/devtool-source-map/style.css | 3 - .../devtool-source-map/webpack.config.js | 19 - .../es-module-concatenation-modules/a.css | 3 - .../es-module-concatenation-modules/b.css | 3 - .../es-module-concatenation-modules/c.css | 3 - .../expected/webpack-4/main.css | 12 - .../expected/webpack-4/main.js | 141 - .../expected/webpack-5/main.css | 12 - .../expected/webpack-5/main.js | 124 - .../es-module-concatenation-modules/index.js | 11 - .../webpack.config.js | 41 - test/cases/es-module-concatenation/a.css | 3 - test/cases/es-module-concatenation/b.css | 3 - test/cases/es-module-concatenation/c.css | 3 - .../expected/webpack-4/main.css | 12 - .../expected/webpack-4/main.js | 111 - .../expected/webpack-5/main.css | 12 - .../expected/webpack-5/main.js | 69 - test/cases/es-module-concatenation/index.js | 3 - .../es-module-concatenation/webpack.config.js | 29 - test/cases/es-module-syntax/expected/main.css | 12 - test/cases/es-module-syntax/index.js | 1 - test/cases/es-module-syntax/style.css | 11 - test/cases/es-module-syntax/webpack.config.js | 32 - .../expected/webpack-4/main.css | 12 - .../expected/webpack-4/main.js | 115 - .../expected/webpack-5/main.css | 12 - .../expected/webpack-5/main.js | 91 - test/cases/es-named-export/index.js | 4 - test/cases/es-named-export/style.css | 11 - test/cases/es-named-export/webpack.config.js | 38 - .../expected/demo/css/main.css | 4 - test/cases/filename-as-function/index.js | 1 - test/cases/filename-as-function/style.css | 3 - .../filename-as-function/webpack.config.js | 23 - test/cases/filename-with-template/async.css | 3 - .../filename-with-template/expected/async.css | 4 - .../filename-with-template/expected/main.css | 4 - test/cases/filename-with-template/index.js | 4 - test/cases/filename-with-template/style.css | 3 - .../filename-with-template/webpack.config.js | 18 - .../cases/filename-without-template/async.css | 3 - .../expected/webpack-4/1.main.css | 4 - .../expected/webpack-4/main.css | 4 - .../expected/webpack-5/0.main.css | 4 - .../expected/webpack-5/main.css | 4 - test/cases/filename-without-template/index.js | 4 - .../cases/filename-without-template/style.css | 3 - .../webpack.config.js | 18 - test/cases/hmr/a.css | 3 - test/cases/hmr/b.css | 9 - test/cases/hmr/c.css | 9 - test/cases/hmr/expected/webpack-4/main.css | 24 - test/cases/hmr/expected/webpack-4/main.js | 1159 -- test/cases/hmr/expected/webpack-5/main.css | 24 - test/cases/hmr/expected/webpack-5/main.js | 1397 -- test/cases/hmr/index.css | 2 - test/cases/hmr/webpack.config.js | 26 - test/cases/ignoreOrder/e1.css | 3 - test/cases/ignoreOrder/e2.css | 3 - test/cases/ignoreOrder/expected/styles.css | 8 - test/cases/ignoreOrder/index.js | 2 - test/cases/ignoreOrder/index2.js | 2 - test/cases/ignoreOrder/webpack.config.js | 33 - test/cases/ignoreOrderFalse/e1.css | 3 - test/cases/ignoreOrderFalse/e2.css | 3 - test/cases/ignoreOrderFalse/e3.css | 3 - .../ignoreOrderFalse/expected/styles.css | 12 - test/cases/ignoreOrderFalse/index.js | 2 - test/cases/ignoreOrderFalse/index2.js | 2 - test/cases/ignoreOrderFalse/index3.js | 2 - test/cases/ignoreOrderFalse/warnings.js | 12 - test/cases/ignoreOrderFalse/webpack.config.js | 34 - .../ignoreOrderFalseWithoutGoodChunks/e1.css | 3 - .../ignoreOrderFalseWithoutGoodChunks/e2.css | 3 - .../ignoreOrderFalseWithoutGoodChunks/e3.css | 3 - .../ignoreOrderFalseWithoutGoodChunks/e4.css | 3 - .../expected/styles.css | 16 - .../index.js | 1 - .../index2.js | 2 - .../index3.js | 3 - .../index4.js | 3 - .../warnings.js | 27 - .../webpack.config.js | 35 - test/cases/import/a.css | 3 - test/cases/import/b.css | 9 - test/cases/import/c.css | 9 - test/cases/import/expected/main.css | 22 - test/cases/import/index.js | 3 - test/cases/import/webpack.config.js | 18 - .../insert-function/expected/webpack-4/1.css | 4 - .../insert-function/expected/webpack-4/1.js | 12 - .../expected/webpack-4/main.js | 271 - .../insert-function/expected/webpack-5/1.css | 4 - .../insert-function/expected/webpack-5/1.js | 12 - .../expected/webpack-5/main.js | 335 - test/cases/insert-function/src/index.js | 4 - test/cases/insert-function/src/inject.css | 3 - test/cases/insert-function/webpack.config.js | 34 - .../insert-string/expected/webpack-4/1.css | 4 - .../insert-string/expected/webpack-4/1.js | 12 - .../insert-string/expected/webpack-4/main.js | 266 - .../insert-string/expected/webpack-5/1.css | 4 - .../insert-string/expected/webpack-5/1.js | 12 - .../insert-string/expected/webpack-5/main.js | 330 - test/cases/insert-string/src/index.js | 4 - test/cases/insert-string/src/inject.css | 3 - test/cases/insert-string/webpack.config.js | 28 - .../insert-undefined/expected/webpack-4/1.css | 4 - .../insert-undefined/expected/webpack-4/1.js | 12 - .../expected/webpack-4/main.js | 265 - .../insert-undefined/expected/webpack-5/1.css | 4 - .../insert-undefined/expected/webpack-5/1.js | 12 - .../expected/webpack-5/main.js | 329 - test/cases/insert-undefined/src/index.js | 4 - test/cases/insert-undefined/src/inject.css | 3 - test/cases/insert-undefined/webpack.config.js | 27 - .../style.30d1e86f422f446d669b.1.css | 4 - .../style.b80413d497a74d66cee9.2.css | 5 - .../style.4cb374e02713728d4368.2.css | 5 - .../style.ae86d9aec2dd87794799.1.css | 4 - test/cases/js-hash/index.js | 2 - test/cases/js-hash/loader.js | 4 - test/cases/js-hash/style.css | 7 - test/cases/js-hash/webpack.config.js | 43 - .../expected/mutated.css | 4 - .../moduleFilenameMutableFilename/index.js | 1 - .../moduleFilenameMutableFilename/style.css | 3 - .../webpack.config.js | 27 - test/cases/multiple-entry/a.css | 3 - test/cases/multiple-entry/async-one.js | 2 - test/cases/multiple-entry/async-two.js | 2 - test/cases/multiple-entry/b.css | 3 - test/cases/multiple-entry/c.css | 3 - test/cases/multiple-entry/d.css | 3 - .../multiple-entry/expected/async-one.css | 8 - .../multiple-entry/expected/async-two.css | 8 - .../multiple-entry/expected/main-one.css | 8 - .../multiple-entry/expected/main-two.css | 8 - test/cases/multiple-entry/index-one.js | 5 - test/cases/multiple-entry/index-two.js | 5 - test/cases/multiple-entry/webpack.config.js | 21 - test/cases/nested/a.css | 3 - test/cases/nested/b.css | 3 - test/cases/nested/component.css | 3 - test/cases/nested/component.js | 1 - test/cases/nested/expected/main.css | 12 - test/cases/nested/index.js | 3 - test/cases/nested/webpack.config.js | 18 - test/cases/no-identifier/index.js | 1 - test/cases/no-identifier/style.css | 11 - test/cases/no-identifier/webpack.config.js | 30 - test/cases/no-source-map/expected/main.css | 4 - test/cases/no-source-map/index.js | 1 - test/cases/no-source-map/style.css | 3 - test/cases/no-source-map/webpack.config.js | 30 - .../publicpath-emptystring/expected/main.css | 5 - test/cases/publicpath-emptystring/index.js | 1 - test/cases/publicpath-emptystring/react.svg | 1 - test/cases/publicpath-emptystring/style.css | 4 - .../publicpath-emptystring/webpack.config.js | 37 - .../expected/nested/again/style.css | 5 - .../expected/nested/style.css | 5 - .../nested/again/style.css | 4 - .../publicpath-function/nested/style.css | 4 - test/cases/publicpath-function/react.svg | 1 - .../publicpath-function/webpack.config.js | 48 - .../expected/main.css | 5 - test/cases/publicpath-trailing-slash/index.js | 1 - .../cases/publicpath-trailing-slash/react.svg | 1 - .../cases/publicpath-trailing-slash/style.css | 4 - .../webpack.config.js | 37 - test/cases/shared-import/a.css | 5 - test/cases/shared-import/b.css | 5 - test/cases/shared-import/c.css | 5 - test/cases/shared-import/expected/1.css | 4 - test/cases/shared-import/expected/main.css | 14 - test/cases/shared-import/index.js | 5 - test/cases/shared-import/shared.css | 5 - test/cases/shared-import/webpack.config.js | 18 - .../simple-async-load-css-fallback/a.css | 3 - .../async-one.js | 2 - .../async-two.js | 2 - .../simple-async-load-css-fallback/b.css | 3 - .../simple-async-load-css-fallback/c.css | 3 - .../simple-async-load-css-fallback/d.css | 3 - .../simple-async-load-css-fallback/e.css | 3 - .../expected/async-one.css | 8 - .../expected/async-two.css | 8 - .../expected/main.css | 8 - .../simple-async-load-css-fallback/f.css | 3 - .../simple-async-load-css-fallback/index.js | 7 - .../webpack.config.js | 31 - test/cases/simple-async-load-css/a.css | 3 - test/cases/simple-async-load-css/async-one.js | 2 - test/cases/simple-async-load-css/async-two.js | 2 - test/cases/simple-async-load-css/b.css | 3 - test/cases/simple-async-load-css/c.css | 3 - test/cases/simple-async-load-css/d.css | 3 - test/cases/simple-async-load-css/e.css | 3 - .../expected/async-one.css | 8 - .../expected/async-two.css | 8 - .../simple-async-load-css/expected/main.css | 8 - test/cases/simple-async-load-css/f.css | 3 - test/cases/simple-async-load-css/index.js | 7 - .../simple-async-load-css/webpack.config.js | 20 - test/cases/simple-async-source-map/async.css | 3 - test/cases/simple-async-source-map/async.js | 1 - .../simple-async-source-map/expected/1.css | 6 - .../expected/1.css.map | 1 - .../simple-async-source-map/expected/2.css | 6 - .../expected/2.css.map | 1 - .../simple-async-source-map/expected/main.css | 6 - .../expected/main.css.map | 1 - .../simple-async-source-map/in-async.css | 3 - test/cases/simple-async-source-map/index.js | 7 - test/cases/simple-async-source-map/main.css | 3 - .../simple-async-source-map/webpack.config.js | 19 - test/cases/simple-async/async.css | 3 - test/cases/simple-async/async.js | 1 - test/cases/simple-async/expected/1.css | 4 - test/cases/simple-async/expected/2.css | 4 - test/cases/simple-async/expected/main.css | 4 - test/cases/simple-async/in-async.css | 3 - test/cases/simple-async/index.js | 7 - test/cases/simple-async/main.css | 3 - test/cases/simple-async/webpack.config.js | 18 - .../simple-commonjs-syntax/expected/main.css | 4 - test/cases/simple-commonjs-syntax/index.js | 1 - test/cases/simple-commonjs-syntax/style.css | 3 - .../simple-commonjs-syntax/webpack.config.js | 25 - .../expected/main.css | 12 - .../simple-css-modules-mode-global/index.js | 1 - .../simple-css-modules-mode-global/style.css | 11 - .../webpack.config.js | 29 - .../expected/main.css | 12 - .../simple-css-modules-mode-local/index.js | 1 - .../simple-css-modules-mode-local/style.css | 11 - .../webpack.config.js | 29 - .../expected/main.css | 4 - .../simple-css-modules-mode-pure/index.js | 1 - .../simple-css-modules-mode-pure/style.css | 3 - .../webpack.config.js | 29 - .../simple-es-module-syntax/expected/main.css | 4 - test/cases/simple-es-module-syntax/index.js | 1 - test/cases/simple-es-module-syntax/style.css | 3 - .../simple-es-module-syntax/webpack.config.js | 25 - test/cases/simple-multiple/a.css | 3 - test/cases/simple-multiple/b.css | 3 - test/cases/simple-multiple/expected/main.css | 8 - test/cases/simple-multiple/index.js | 2 - test/cases/simple-multiple/webpack.config.js | 18 - .../cases/simple-publicpath/expected/main.css | 5 - test/cases/simple-publicpath/index.js | 1 - test/cases/simple-publicpath/react.svg | 1 - test/cases/simple-publicpath/style.css | 4 - .../cases/simple-publicpath/webpack.config.js | 37 - test/cases/simple/expected/main.css | 4 - test/cases/simple/index.js | 1 - test/cases/simple/style.css | 3 - test/cases/simple/webpack.config.js | 18 - test/cases/source-map/expected/main.css | 6 - test/cases/source-map/index.js | 1 - test/cases/source-map/style.css | 3 - test/cases/source-map/webpack.config.js | 29 - test/cases/split-chunks-all/a.js | 1 - test/cases/split-chunks-all/b.js | 1 - .../expected/webpack-4/styles~a~b.css | 4 - .../split-chunks-all/expected/webpack-5/2.css | 4 - .../split-chunks-all/expected/webpack-5/2.js | 1 - test/cases/split-chunks-all/index.js | 1 - test/cases/split-chunks-all/style.css | 3 - test/cases/split-chunks-all/webpack.config.js | 36 - test/cases/split-chunks-recursiveIssuer/a.css | 3 - test/cases/split-chunks-recursiveIssuer/a.js | 3 - test/cases/split-chunks-recursiveIssuer/b.css | 3 - test/cases/split-chunks-recursiveIssuer/b.js | 3 - .../components/comp1.css | 3 - .../components/comp1.js | 1 - .../components/comp2.css | 3 - .../components/comp2.js | 1 - .../expected/styles_a.css | 8 - .../expected/styles_b.css | 8 - .../webpack.config.js | 60 - test/cases/split-chunks-single/a.css | 3 - test/cases/split-chunks-single/b.css | 3 - test/cases/split-chunks-single/c.css | 3 - test/cases/split-chunks-single/chunk1.js | 2 - test/cases/split-chunks-single/chunk2.js | 2 - test/cases/split-chunks-single/d.css | 3 - test/cases/split-chunks-single/e1.css | 3 - test/cases/split-chunks-single/e2.css | 3 - test/cases/split-chunks-single/entry1.js | 9 - test/cases/split-chunks-single/entry2.js | 5 - .../split-chunks-single/expected/styles.css | 36 - test/cases/split-chunks-single/f.css | 3 - test/cases/split-chunks-single/g.css | 3 - test/cases/split-chunks-single/h.css | 3 - test/cases/split-chunks-single/style.css | 3 - .../split-chunks-single/webpack.config.js | 33 - test/cases/split-chunks/expected/main.css | 4 - test/cases/split-chunks/expected/vendors.css | 5 - test/cases/split-chunks/index.js | 3 - .../split-chunks/node_modules/bootstrap.css | 4 - test/cases/split-chunks/style.css | 3 - test/cases/split-chunks/webpack.config.js | 30 - test/cjs.test.js | 8 - test/enforce-esm.test.js | 70 - test/fixtures/attributes.js | 2 - test/fixtures/esm.js | 1 - test/fixtures/insert.js | 2 - test/fixtures/json/data-urls.json | 40 - test/fixtures/simple.css | 3 - test/fixtures/simple.js | 3 - test/helpers/compile.js | 11 - test/helpers/getCompiler.js | 61 - test/helpers/getErrors.js | 5 - test/helpers/getWarnings.js | 5 - test/helpers/index.js | 17 - test/helpers/normalizeErrors.js | 19 - test/helpers/readAsset.js | 23 - test/helpers/runInJsDom.js | 44 - test/helpers/source.js | 20 - test/ignoreOrder-option.test.js | 45 - test/insert-option.test.js | 106 - test/linkTag-option.test.js | 97 - test/manual/README.md | 0 test/manual/index.html | 72 - test/manual/src/crossorigin.css | 3 - test/manual/src/crossorigin.js | 1 - test/manual/src/index.js | 96 - test/manual/src/initial.css | 3 - test/manual/src/lazy-failure.css | 3 - test/manual/src/lazy-failure.js | 3 - test/manual/src/lazy.css | 3 - test/manual/src/lazy.js | 3 - test/manual/src/lazy.module.css | 3 - test/manual/src/lazy2.css | 3 - test/manual/src/preloaded1.css | 3 - test/manual/src/preloaded1.js | 6 - test/manual/src/preloaded2.css | 3 - test/manual/src/preloaded2.js | 6 - test/manual/src/simple.css | 11 - test/manual/src/simple.module.css | 11 - test/manual/webpack.config.js | 70 - test/normalize-url.test.js | 15 - test/validate-loader-options.test.js | 69 - test/validate-plugin-options.test.js | 91 - 507 files changed, 949 insertions(+), 28886 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintignore delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/CODEOWNERS delete mode 100644 .github/CONTRIBUTING.md delete mode 100644 .github/FUNDING.yml delete mode 100644 .github/ISSUE_TEMPLATE.md delete mode 100644 .github/ISSUE_TEMPLATE/BUG.md delete mode 100644 .github/ISSUE_TEMPLATE/DOCS.md delete mode 100644 .github/ISSUE_TEMPLATE/FEATURE.md delete mode 100644 .github/ISSUE_TEMPLATE/MODIFICATION.md delete mode 100644 .github/ISSUE_TEMPLATE/SUPPORT.md delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/nodejs.yml delete mode 100644 .gitignore delete mode 100644 .prettierignore delete mode 100644 .prettierrc.js delete mode 100644 babel.config.js delete mode 100644 commitlint.config.js create mode 100644 dist/CssDependency.js create mode 100644 dist/cjs.js rename {src => dist}/hmr/hotModuleReplacement.js (58%) create mode 100644 dist/index.js create mode 100644 dist/loader.js create mode 100644 dist/options.json delete mode 100644 husky.config.js delete mode 100644 jest.config.js delete mode 100644 lint-staged.config.js delete mode 100644 package-lock.json delete mode 100644 setupTest.js delete mode 100644 src/CssDependency.js delete mode 100644 src/CssDependencyTemplate.js delete mode 100644 src/CssLoadingRuntimeModule.js delete mode 100644 src/CssModule.js delete mode 100644 src/CssModuleFactory.js delete mode 100644 src/cjs.js delete mode 100644 src/hmr/normalize-url.js delete mode 100644 src/index.js delete mode 100644 src/loader-options.json delete mode 100644 src/loader.js delete mode 100644 src/plugin-options.json delete mode 100644 src/utils.js delete mode 100644 test/HMR.test.js delete mode 100644 test/TestCache.test.js delete mode 100644 test/TestCases.test.js delete mode 100644 test/TestMemoryFS.test.js delete mode 100644 test/__snapshots__/HMR.test.js.snap delete mode 100644 test/__snapshots__/attributes-option.test.js.snap delete mode 100644 test/__snapshots__/insert-option.test.js.snap delete mode 100644 test/__snapshots__/linkTag-option.test.js.snap delete mode 100644 test/__snapshots__/validate-loader-options.test.js.snap delete mode 100644 test/__snapshots__/validate-plugin-options.test.js.snap delete mode 100644 test/attributes-option.test.js delete mode 100644 test/cases/at-import/a.css delete mode 100644 test/cases/at-import/aa.css delete mode 100644 test/cases/at-import/ab.css delete mode 100644 test/cases/at-import/ac.css delete mode 100644 test/cases/at-import/ad.css delete mode 100644 test/cases/at-import/ae.css delete mode 100644 test/cases/at-import/b.css delete mode 100644 test/cases/at-import/ba.css delete mode 100644 test/cases/at-import/bb.css delete mode 100644 test/cases/at-import/expected/main.css delete mode 100644 test/cases/at-import/index.js delete mode 100644 test/cases/at-import/webpack.config.js delete mode 100644 test/cases/chunkFilename-as-function/async.css delete mode 100644 test/cases/chunkFilename-as-function/expected/webpack-4/1.async.css delete mode 100644 test/cases/chunkFilename-as-function/expected/webpack-4/main.css delete mode 100644 test/cases/chunkFilename-as-function/expected/webpack-5/0.async.css delete mode 100644 test/cases/chunkFilename-as-function/expected/webpack-5/main.css delete mode 100644 test/cases/chunkFilename-as-function/index.js delete mode 100644 test/cases/chunkFilename-as-function/style.css delete mode 100644 test/cases/chunkFilename-as-function/webpack.config.js delete mode 100644 test/cases/chunkFilename/async.css delete mode 100644 test/cases/chunkFilename/expected/webpack-4/1.async.css delete mode 100644 test/cases/chunkFilename/expected/webpack-4/main.css delete mode 100644 test/cases/chunkFilename/expected/webpack-5/0.async.css delete mode 100644 test/cases/chunkFilename/expected/webpack-5/main.css delete mode 100644 test/cases/chunkFilename/index.js delete mode 100644 test/cases/chunkFilename/style.css delete mode 100644 test/cases/chunkFilename/webpack.config.js delete mode 100644 test/cases/commonjs-module-syntax/expected/main.css delete mode 100644 test/cases/commonjs-module-syntax/index.js delete mode 100644 test/cases/commonjs-module-syntax/style.css delete mode 100644 test/cases/commonjs-module-syntax/webpack.config.js delete mode 100644 test/cases/composes-async/async-1.css delete mode 100644 test/cases/composes-async/async-2.css delete mode 100644 test/cases/composes-async/expected/async-1.css delete mode 100644 test/cases/composes-async/expected/dedupe.css delete mode 100644 test/cases/composes-async/index.js delete mode 100644 test/cases/composes-async/webpack.config.js delete mode 100644 test/cases/contenthash-multiple-entries/entryA.js delete mode 100644 test/cases/contenthash-multiple-entries/entryB.js delete mode 100644 test/cases/contenthash-multiple-entries/entryC.js delete mode 100644 test/cases/contenthash-multiple-entries/entryD.js delete mode 100644 test/cases/contenthash-multiple-entries/entryE.js delete mode 100644 test/cases/contenthash-multiple-entries/expected/webpack-4/96236f7f51b351aabd20.css delete mode 100644 test/cases/contenthash-multiple-entries/expected/webpack-4/f22bc5a793a5a86ad253.css delete mode 100644 test/cases/contenthash-multiple-entries/expected/webpack-5/0f36361d4b50faed4928.css delete mode 100644 test/cases/contenthash-multiple-entries/expected/webpack-5/35dbeb8e6cb82c82c80c.css delete mode 100644 test/cases/contenthash-multiple-entries/styleA.css delete mode 100644 test/cases/contenthash-multiple-entries/styleB.css delete mode 100644 test/cases/contenthash-multiple-entries/styleC.css delete mode 100644 test/cases/contenthash-multiple-entries/styleD.css delete mode 100644 test/cases/contenthash-multiple-entries/webpack.config.js delete mode 100644 test/cases/contenthash/expected/webpack-4/1.main.c4d90d38e7a606ae4d4c.css delete mode 100644 test/cases/contenthash/expected/webpack-4/2.main.64d1032b1547f22458a7.css delete mode 100644 test/cases/contenthash/expected/webpack-5/1.main.6521a335718b303aa5f2.css delete mode 100644 test/cases/contenthash/expected/webpack-5/2.main.7a77891ac7cc86d3d7b7.css delete mode 100644 test/cases/contenthash/index.js delete mode 100644 test/cases/contenthash/style1.css delete mode 100644 test/cases/contenthash/style2.css delete mode 100644 test/cases/contenthash/webpack.config.js delete mode 100644 test/cases/css-import/a.css delete mode 100644 test/cases/css-import/b.css delete mode 100644 test/cases/css-import/c.css delete mode 100644 test/cases/css-import/expected/main.css delete mode 100644 test/cases/css-import/index.css delete mode 100644 test/cases/css-import/webpack.config.js delete mode 100644 test/cases/default-options/expected/main.css delete mode 100644 test/cases/default-options/index.js delete mode 100644 test/cases/default-options/style.css delete mode 100644 test/cases/default-options/webpack.config.js delete mode 100644 test/cases/dependOn-multiple-files-per-entry/entryA.js delete mode 100644 test/cases/dependOn-multiple-files-per-entry/entryB.js delete mode 100644 test/cases/dependOn-multiple-files-per-entry/entryC.js delete mode 100644 test/cases/dependOn-multiple-files-per-entry/entryD.js delete mode 100644 test/cases/dependOn-multiple-files-per-entry/expected/webpack-5/common.css delete mode 100644 test/cases/dependOn-multiple-files-per-entry/expected/webpack-5/common.js delete mode 100644 test/cases/dependOn-multiple-files-per-entry/expected/webpack-5/entry1.css delete mode 100644 test/cases/dependOn-multiple-files-per-entry/expected/webpack-5/entry1.js delete mode 100644 test/cases/dependOn-multiple-files-per-entry/styleA.css delete mode 100644 test/cases/dependOn-multiple-files-per-entry/styleB.css delete mode 100644 test/cases/dependOn-multiple-files-per-entry/styleC.css delete mode 100644 test/cases/dependOn-multiple-files-per-entry/styleD.css delete mode 100644 test/cases/dependOn-multiple-files-per-entry/test.filter.js delete mode 100644 test/cases/dependOn-multiple-files-per-entry/webpack.config.js delete mode 100644 test/cases/dependOn/entryA.js delete mode 100644 test/cases/dependOn/entryB.js delete mode 100644 test/cases/dependOn/expected/webpack-5/common.css delete mode 100644 test/cases/dependOn/expected/webpack-5/common.js delete mode 100644 test/cases/dependOn/expected/webpack-5/entry1.css delete mode 100644 test/cases/dependOn/expected/webpack-5/entry1.js delete mode 100644 test/cases/dependOn/styleA.css delete mode 100644 test/cases/dependOn/styleB.css delete mode 100644 test/cases/dependOn/test.filter.js delete mode 100644 test/cases/dependOn/webpack.config.js delete mode 100644 test/cases/devtool-source-map-no-source-maps-from-css-loader/expected/main.css delete mode 100644 test/cases/devtool-source-map-no-source-maps-from-css-loader/expected/main.css.map delete mode 100644 test/cases/devtool-source-map-no-source-maps-from-css-loader/index.js delete mode 100644 test/cases/devtool-source-map-no-source-maps-from-css-loader/style.css delete mode 100644 test/cases/devtool-source-map-no-source-maps-from-css-loader/webpack.config.js delete mode 100644 test/cases/devtool-source-map/expected/main.css delete mode 100644 test/cases/devtool-source-map/expected/main.css.map delete mode 100644 test/cases/devtool-source-map/index.js delete mode 100644 test/cases/devtool-source-map/style.css delete mode 100644 test/cases/devtool-source-map/webpack.config.js delete mode 100644 test/cases/es-module-concatenation-modules/a.css delete mode 100644 test/cases/es-module-concatenation-modules/b.css delete mode 100644 test/cases/es-module-concatenation-modules/c.css delete mode 100644 test/cases/es-module-concatenation-modules/expected/webpack-4/main.css delete mode 100644 test/cases/es-module-concatenation-modules/expected/webpack-4/main.js delete mode 100644 test/cases/es-module-concatenation-modules/expected/webpack-5/main.css delete mode 100644 test/cases/es-module-concatenation-modules/expected/webpack-5/main.js delete mode 100644 test/cases/es-module-concatenation-modules/index.js delete mode 100644 test/cases/es-module-concatenation-modules/webpack.config.js delete mode 100644 test/cases/es-module-concatenation/a.css delete mode 100644 test/cases/es-module-concatenation/b.css delete mode 100644 test/cases/es-module-concatenation/c.css delete mode 100644 test/cases/es-module-concatenation/expected/webpack-4/main.css delete mode 100644 test/cases/es-module-concatenation/expected/webpack-4/main.js delete mode 100644 test/cases/es-module-concatenation/expected/webpack-5/main.css delete mode 100644 test/cases/es-module-concatenation/expected/webpack-5/main.js delete mode 100644 test/cases/es-module-concatenation/index.js delete mode 100644 test/cases/es-module-concatenation/webpack.config.js delete mode 100644 test/cases/es-module-syntax/expected/main.css delete mode 100644 test/cases/es-module-syntax/index.js delete mode 100644 test/cases/es-module-syntax/style.css delete mode 100644 test/cases/es-module-syntax/webpack.config.js delete mode 100644 test/cases/es-named-export/expected/webpack-4/main.css delete mode 100644 test/cases/es-named-export/expected/webpack-4/main.js delete mode 100644 test/cases/es-named-export/expected/webpack-5/main.css delete mode 100644 test/cases/es-named-export/expected/webpack-5/main.js delete mode 100644 test/cases/es-named-export/index.js delete mode 100644 test/cases/es-named-export/style.css delete mode 100644 test/cases/es-named-export/webpack.config.js delete mode 100644 test/cases/filename-as-function/expected/demo/css/main.css delete mode 100644 test/cases/filename-as-function/index.js delete mode 100644 test/cases/filename-as-function/style.css delete mode 100644 test/cases/filename-as-function/webpack.config.js delete mode 100644 test/cases/filename-with-template/async.css delete mode 100644 test/cases/filename-with-template/expected/async.css delete mode 100644 test/cases/filename-with-template/expected/main.css delete mode 100644 test/cases/filename-with-template/index.js delete mode 100644 test/cases/filename-with-template/style.css delete mode 100644 test/cases/filename-with-template/webpack.config.js delete mode 100644 test/cases/filename-without-template/async.css delete mode 100644 test/cases/filename-without-template/expected/webpack-4/1.main.css delete mode 100644 test/cases/filename-without-template/expected/webpack-4/main.css delete mode 100644 test/cases/filename-without-template/expected/webpack-5/0.main.css delete mode 100644 test/cases/filename-without-template/expected/webpack-5/main.css delete mode 100644 test/cases/filename-without-template/index.js delete mode 100644 test/cases/filename-without-template/style.css delete mode 100644 test/cases/filename-without-template/webpack.config.js delete mode 100644 test/cases/hmr/a.css delete mode 100644 test/cases/hmr/b.css delete mode 100644 test/cases/hmr/c.css delete mode 100644 test/cases/hmr/expected/webpack-4/main.css delete mode 100644 test/cases/hmr/expected/webpack-4/main.js delete mode 100644 test/cases/hmr/expected/webpack-5/main.css delete mode 100644 test/cases/hmr/expected/webpack-5/main.js delete mode 100644 test/cases/hmr/index.css delete mode 100644 test/cases/hmr/webpack.config.js delete mode 100644 test/cases/ignoreOrder/e1.css delete mode 100644 test/cases/ignoreOrder/e2.css delete mode 100644 test/cases/ignoreOrder/expected/styles.css delete mode 100644 test/cases/ignoreOrder/index.js delete mode 100644 test/cases/ignoreOrder/index2.js delete mode 100644 test/cases/ignoreOrder/webpack.config.js delete mode 100644 test/cases/ignoreOrderFalse/e1.css delete mode 100644 test/cases/ignoreOrderFalse/e2.css delete mode 100644 test/cases/ignoreOrderFalse/e3.css delete mode 100644 test/cases/ignoreOrderFalse/expected/styles.css delete mode 100644 test/cases/ignoreOrderFalse/index.js delete mode 100644 test/cases/ignoreOrderFalse/index2.js delete mode 100644 test/cases/ignoreOrderFalse/index3.js delete mode 100644 test/cases/ignoreOrderFalse/warnings.js delete mode 100644 test/cases/ignoreOrderFalse/webpack.config.js delete mode 100644 test/cases/ignoreOrderFalseWithoutGoodChunks/e1.css delete mode 100644 test/cases/ignoreOrderFalseWithoutGoodChunks/e2.css delete mode 100644 test/cases/ignoreOrderFalseWithoutGoodChunks/e3.css delete mode 100644 test/cases/ignoreOrderFalseWithoutGoodChunks/e4.css delete mode 100644 test/cases/ignoreOrderFalseWithoutGoodChunks/expected/styles.css delete mode 100644 test/cases/ignoreOrderFalseWithoutGoodChunks/index.js delete mode 100644 test/cases/ignoreOrderFalseWithoutGoodChunks/index2.js delete mode 100644 test/cases/ignoreOrderFalseWithoutGoodChunks/index3.js delete mode 100644 test/cases/ignoreOrderFalseWithoutGoodChunks/index4.js delete mode 100644 test/cases/ignoreOrderFalseWithoutGoodChunks/warnings.js delete mode 100644 test/cases/ignoreOrderFalseWithoutGoodChunks/webpack.config.js delete mode 100644 test/cases/import/a.css delete mode 100644 test/cases/import/b.css delete mode 100644 test/cases/import/c.css delete mode 100644 test/cases/import/expected/main.css delete mode 100644 test/cases/import/index.js delete mode 100644 test/cases/import/webpack.config.js delete mode 100644 test/cases/insert-function/expected/webpack-4/1.css delete mode 100644 test/cases/insert-function/expected/webpack-4/1.js delete mode 100644 test/cases/insert-function/expected/webpack-4/main.js delete mode 100644 test/cases/insert-function/expected/webpack-5/1.css delete mode 100644 test/cases/insert-function/expected/webpack-5/1.js delete mode 100644 test/cases/insert-function/expected/webpack-5/main.js delete mode 100644 test/cases/insert-function/src/index.js delete mode 100644 test/cases/insert-function/src/inject.css delete mode 100644 test/cases/insert-function/webpack.config.js delete mode 100644 test/cases/insert-string/expected/webpack-4/1.css delete mode 100644 test/cases/insert-string/expected/webpack-4/1.js delete mode 100644 test/cases/insert-string/expected/webpack-4/main.js delete mode 100644 test/cases/insert-string/expected/webpack-5/1.css delete mode 100644 test/cases/insert-string/expected/webpack-5/1.js delete mode 100644 test/cases/insert-string/expected/webpack-5/main.js delete mode 100644 test/cases/insert-string/src/index.js delete mode 100644 test/cases/insert-string/src/inject.css delete mode 100644 test/cases/insert-string/webpack.config.js delete mode 100644 test/cases/insert-undefined/expected/webpack-4/1.css delete mode 100644 test/cases/insert-undefined/expected/webpack-4/1.js delete mode 100644 test/cases/insert-undefined/expected/webpack-4/main.js delete mode 100644 test/cases/insert-undefined/expected/webpack-5/1.css delete mode 100644 test/cases/insert-undefined/expected/webpack-5/1.js delete mode 100644 test/cases/insert-undefined/expected/webpack-5/main.js delete mode 100644 test/cases/insert-undefined/src/index.js delete mode 100644 test/cases/insert-undefined/src/inject.css delete mode 100644 test/cases/insert-undefined/webpack.config.js delete mode 100644 test/cases/js-hash/expected/webpack-4/style.30d1e86f422f446d669b.1.css delete mode 100644 test/cases/js-hash/expected/webpack-4/style.b80413d497a74d66cee9.2.css delete mode 100644 test/cases/js-hash/expected/webpack-5/style.4cb374e02713728d4368.2.css delete mode 100644 test/cases/js-hash/expected/webpack-5/style.ae86d9aec2dd87794799.1.css delete mode 100644 test/cases/js-hash/index.js delete mode 100644 test/cases/js-hash/loader.js delete mode 100644 test/cases/js-hash/style.css delete mode 100644 test/cases/js-hash/webpack.config.js delete mode 100644 test/cases/moduleFilenameMutableFilename/expected/mutated.css delete mode 100644 test/cases/moduleFilenameMutableFilename/index.js delete mode 100644 test/cases/moduleFilenameMutableFilename/style.css delete mode 100644 test/cases/moduleFilenameMutableFilename/webpack.config.js delete mode 100644 test/cases/multiple-entry/a.css delete mode 100644 test/cases/multiple-entry/async-one.js delete mode 100644 test/cases/multiple-entry/async-two.js delete mode 100644 test/cases/multiple-entry/b.css delete mode 100644 test/cases/multiple-entry/c.css delete mode 100644 test/cases/multiple-entry/d.css delete mode 100644 test/cases/multiple-entry/expected/async-one.css delete mode 100644 test/cases/multiple-entry/expected/async-two.css delete mode 100644 test/cases/multiple-entry/expected/main-one.css delete mode 100644 test/cases/multiple-entry/expected/main-two.css delete mode 100644 test/cases/multiple-entry/index-one.js delete mode 100644 test/cases/multiple-entry/index-two.js delete mode 100644 test/cases/multiple-entry/webpack.config.js delete mode 100644 test/cases/nested/a.css delete mode 100644 test/cases/nested/b.css delete mode 100644 test/cases/nested/component.css delete mode 100644 test/cases/nested/component.js delete mode 100644 test/cases/nested/expected/main.css delete mode 100644 test/cases/nested/index.js delete mode 100644 test/cases/nested/webpack.config.js delete mode 100644 test/cases/no-identifier/index.js delete mode 100644 test/cases/no-identifier/style.css delete mode 100644 test/cases/no-identifier/webpack.config.js delete mode 100644 test/cases/no-source-map/expected/main.css delete mode 100644 test/cases/no-source-map/index.js delete mode 100644 test/cases/no-source-map/style.css delete mode 100644 test/cases/no-source-map/webpack.config.js delete mode 100644 test/cases/publicpath-emptystring/expected/main.css delete mode 100644 test/cases/publicpath-emptystring/index.js delete mode 100644 test/cases/publicpath-emptystring/react.svg delete mode 100644 test/cases/publicpath-emptystring/style.css delete mode 100644 test/cases/publicpath-emptystring/webpack.config.js delete mode 100644 test/cases/publicpath-function/expected/nested/again/style.css delete mode 100644 test/cases/publicpath-function/expected/nested/style.css delete mode 100644 test/cases/publicpath-function/nested/again/style.css delete mode 100644 test/cases/publicpath-function/nested/style.css delete mode 100644 test/cases/publicpath-function/react.svg delete mode 100644 test/cases/publicpath-function/webpack.config.js delete mode 100644 test/cases/publicpath-trailing-slash/expected/main.css delete mode 100644 test/cases/publicpath-trailing-slash/index.js delete mode 100644 test/cases/publicpath-trailing-slash/react.svg delete mode 100644 test/cases/publicpath-trailing-slash/style.css delete mode 100644 test/cases/publicpath-trailing-slash/webpack.config.js delete mode 100644 test/cases/shared-import/a.css delete mode 100644 test/cases/shared-import/b.css delete mode 100644 test/cases/shared-import/c.css delete mode 100644 test/cases/shared-import/expected/1.css delete mode 100644 test/cases/shared-import/expected/main.css delete mode 100644 test/cases/shared-import/index.js delete mode 100644 test/cases/shared-import/shared.css delete mode 100644 test/cases/shared-import/webpack.config.js delete mode 100644 test/cases/simple-async-load-css-fallback/a.css delete mode 100644 test/cases/simple-async-load-css-fallback/async-one.js delete mode 100644 test/cases/simple-async-load-css-fallback/async-two.js delete mode 100644 test/cases/simple-async-load-css-fallback/b.css delete mode 100644 test/cases/simple-async-load-css-fallback/c.css delete mode 100644 test/cases/simple-async-load-css-fallback/d.css delete mode 100644 test/cases/simple-async-load-css-fallback/e.css delete mode 100644 test/cases/simple-async-load-css-fallback/expected/async-one.css delete mode 100644 test/cases/simple-async-load-css-fallback/expected/async-two.css delete mode 100644 test/cases/simple-async-load-css-fallback/expected/main.css delete mode 100644 test/cases/simple-async-load-css-fallback/f.css delete mode 100644 test/cases/simple-async-load-css-fallback/index.js delete mode 100644 test/cases/simple-async-load-css-fallback/webpack.config.js delete mode 100644 test/cases/simple-async-load-css/a.css delete mode 100644 test/cases/simple-async-load-css/async-one.js delete mode 100644 test/cases/simple-async-load-css/async-two.js delete mode 100644 test/cases/simple-async-load-css/b.css delete mode 100644 test/cases/simple-async-load-css/c.css delete mode 100644 test/cases/simple-async-load-css/d.css delete mode 100644 test/cases/simple-async-load-css/e.css delete mode 100644 test/cases/simple-async-load-css/expected/async-one.css delete mode 100644 test/cases/simple-async-load-css/expected/async-two.css delete mode 100644 test/cases/simple-async-load-css/expected/main.css delete mode 100644 test/cases/simple-async-load-css/f.css delete mode 100644 test/cases/simple-async-load-css/index.js delete mode 100644 test/cases/simple-async-load-css/webpack.config.js delete mode 100644 test/cases/simple-async-source-map/async.css delete mode 100644 test/cases/simple-async-source-map/async.js delete mode 100644 test/cases/simple-async-source-map/expected/1.css delete mode 100644 test/cases/simple-async-source-map/expected/1.css.map delete mode 100644 test/cases/simple-async-source-map/expected/2.css delete mode 100644 test/cases/simple-async-source-map/expected/2.css.map delete mode 100644 test/cases/simple-async-source-map/expected/main.css delete mode 100644 test/cases/simple-async-source-map/expected/main.css.map delete mode 100644 test/cases/simple-async-source-map/in-async.css delete mode 100644 test/cases/simple-async-source-map/index.js delete mode 100644 test/cases/simple-async-source-map/main.css delete mode 100644 test/cases/simple-async-source-map/webpack.config.js delete mode 100644 test/cases/simple-async/async.css delete mode 100644 test/cases/simple-async/async.js delete mode 100644 test/cases/simple-async/expected/1.css delete mode 100644 test/cases/simple-async/expected/2.css delete mode 100644 test/cases/simple-async/expected/main.css delete mode 100644 test/cases/simple-async/in-async.css delete mode 100644 test/cases/simple-async/index.js delete mode 100644 test/cases/simple-async/main.css delete mode 100644 test/cases/simple-async/webpack.config.js delete mode 100644 test/cases/simple-commonjs-syntax/expected/main.css delete mode 100644 test/cases/simple-commonjs-syntax/index.js delete mode 100644 test/cases/simple-commonjs-syntax/style.css delete mode 100644 test/cases/simple-commonjs-syntax/webpack.config.js delete mode 100644 test/cases/simple-css-modules-mode-global/expected/main.css delete mode 100644 test/cases/simple-css-modules-mode-global/index.js delete mode 100644 test/cases/simple-css-modules-mode-global/style.css delete mode 100644 test/cases/simple-css-modules-mode-global/webpack.config.js delete mode 100644 test/cases/simple-css-modules-mode-local/expected/main.css delete mode 100644 test/cases/simple-css-modules-mode-local/index.js delete mode 100644 test/cases/simple-css-modules-mode-local/style.css delete mode 100644 test/cases/simple-css-modules-mode-local/webpack.config.js delete mode 100644 test/cases/simple-css-modules-mode-pure/expected/main.css delete mode 100644 test/cases/simple-css-modules-mode-pure/index.js delete mode 100644 test/cases/simple-css-modules-mode-pure/style.css delete mode 100644 test/cases/simple-css-modules-mode-pure/webpack.config.js delete mode 100644 test/cases/simple-es-module-syntax/expected/main.css delete mode 100644 test/cases/simple-es-module-syntax/index.js delete mode 100644 test/cases/simple-es-module-syntax/style.css delete mode 100644 test/cases/simple-es-module-syntax/webpack.config.js delete mode 100644 test/cases/simple-multiple/a.css delete mode 100644 test/cases/simple-multiple/b.css delete mode 100644 test/cases/simple-multiple/expected/main.css delete mode 100644 test/cases/simple-multiple/index.js delete mode 100644 test/cases/simple-multiple/webpack.config.js delete mode 100644 test/cases/simple-publicpath/expected/main.css delete mode 100644 test/cases/simple-publicpath/index.js delete mode 100644 test/cases/simple-publicpath/react.svg delete mode 100644 test/cases/simple-publicpath/style.css delete mode 100644 test/cases/simple-publicpath/webpack.config.js delete mode 100644 test/cases/simple/expected/main.css delete mode 100644 test/cases/simple/index.js delete mode 100644 test/cases/simple/style.css delete mode 100644 test/cases/simple/webpack.config.js delete mode 100644 test/cases/source-map/expected/main.css delete mode 100644 test/cases/source-map/index.js delete mode 100644 test/cases/source-map/style.css delete mode 100644 test/cases/source-map/webpack.config.js delete mode 100644 test/cases/split-chunks-all/a.js delete mode 100644 test/cases/split-chunks-all/b.js delete mode 100644 test/cases/split-chunks-all/expected/webpack-4/styles~a~b.css delete mode 100644 test/cases/split-chunks-all/expected/webpack-5/2.css delete mode 100644 test/cases/split-chunks-all/expected/webpack-5/2.js delete mode 100644 test/cases/split-chunks-all/index.js delete mode 100644 test/cases/split-chunks-all/style.css delete mode 100644 test/cases/split-chunks-all/webpack.config.js delete mode 100644 test/cases/split-chunks-recursiveIssuer/a.css delete mode 100644 test/cases/split-chunks-recursiveIssuer/a.js delete mode 100644 test/cases/split-chunks-recursiveIssuer/b.css delete mode 100644 test/cases/split-chunks-recursiveIssuer/b.js delete mode 100644 test/cases/split-chunks-recursiveIssuer/components/comp1.css delete mode 100644 test/cases/split-chunks-recursiveIssuer/components/comp1.js delete mode 100644 test/cases/split-chunks-recursiveIssuer/components/comp2.css delete mode 100644 test/cases/split-chunks-recursiveIssuer/components/comp2.js delete mode 100644 test/cases/split-chunks-recursiveIssuer/expected/styles_a.css delete mode 100644 test/cases/split-chunks-recursiveIssuer/expected/styles_b.css delete mode 100644 test/cases/split-chunks-recursiveIssuer/webpack.config.js delete mode 100644 test/cases/split-chunks-single/a.css delete mode 100644 test/cases/split-chunks-single/b.css delete mode 100644 test/cases/split-chunks-single/c.css delete mode 100644 test/cases/split-chunks-single/chunk1.js delete mode 100644 test/cases/split-chunks-single/chunk2.js delete mode 100644 test/cases/split-chunks-single/d.css delete mode 100644 test/cases/split-chunks-single/e1.css delete mode 100644 test/cases/split-chunks-single/e2.css delete mode 100644 test/cases/split-chunks-single/entry1.js delete mode 100644 test/cases/split-chunks-single/entry2.js delete mode 100644 test/cases/split-chunks-single/expected/styles.css delete mode 100644 test/cases/split-chunks-single/f.css delete mode 100644 test/cases/split-chunks-single/g.css delete mode 100644 test/cases/split-chunks-single/h.css delete mode 100644 test/cases/split-chunks-single/style.css delete mode 100644 test/cases/split-chunks-single/webpack.config.js delete mode 100644 test/cases/split-chunks/expected/main.css delete mode 100644 test/cases/split-chunks/expected/vendors.css delete mode 100644 test/cases/split-chunks/index.js delete mode 100644 test/cases/split-chunks/node_modules/bootstrap.css delete mode 100644 test/cases/split-chunks/style.css delete mode 100644 test/cases/split-chunks/webpack.config.js delete mode 100644 test/cjs.test.js delete mode 100644 test/enforce-esm.test.js delete mode 100644 test/fixtures/attributes.js delete mode 100644 test/fixtures/esm.js delete mode 100644 test/fixtures/insert.js delete mode 100644 test/fixtures/json/data-urls.json delete mode 100644 test/fixtures/simple.css delete mode 100644 test/fixtures/simple.js delete mode 100644 test/helpers/compile.js delete mode 100644 test/helpers/getCompiler.js delete mode 100644 test/helpers/getErrors.js delete mode 100644 test/helpers/getWarnings.js delete mode 100644 test/helpers/index.js delete mode 100644 test/helpers/normalizeErrors.js delete mode 100644 test/helpers/readAsset.js delete mode 100644 test/helpers/runInJsDom.js delete mode 100644 test/helpers/source.js delete mode 100644 test/ignoreOrder-option.test.js delete mode 100644 test/insert-option.test.js delete mode 100644 test/linkTag-option.test.js delete mode 100644 test/manual/README.md delete mode 100644 test/manual/index.html delete mode 100644 test/manual/src/crossorigin.css delete mode 100644 test/manual/src/crossorigin.js delete mode 100644 test/manual/src/index.js delete mode 100644 test/manual/src/initial.css delete mode 100644 test/manual/src/lazy-failure.css delete mode 100644 test/manual/src/lazy-failure.js delete mode 100644 test/manual/src/lazy.css delete mode 100644 test/manual/src/lazy.js delete mode 100644 test/manual/src/lazy.module.css delete mode 100644 test/manual/src/lazy2.css delete mode 100644 test/manual/src/preloaded1.css delete mode 100644 test/manual/src/preloaded1.js delete mode 100644 test/manual/src/preloaded2.css delete mode 100644 test/manual/src/preloaded2.js delete mode 100644 test/manual/src/simple.css delete mode 100644 test/manual/src/simple.module.css delete mode 100644 test/manual/webpack.config.js delete mode 100644 test/normalize-url.test.js delete mode 100644 test/validate-loader-options.test.js delete mode 100644 test/validate-plugin-options.test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 5f795282..00000000 --- a/.editorconfig +++ /dev/null @@ -1,12 +0,0 @@ -# editorconfig.org - -[*] -charset = utf-8 -indent_style = space -indent_size = 2 -end_of_line = lf -insert_final_newline = true -trim_trailing_whitespace = true - -[*.md] -trim_trailing_whitespace = false diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 8477d2ab..00000000 --- a/.eslintignore +++ /dev/null @@ -1,6 +0,0 @@ -/coverage -/dist -/node_modules -/test/fixtures -/test/cases/*/expected -/test/js diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index c897f8ee..00000000 --- a/.eslintrc.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = { - root: true, - parser: 'babel-eslint', - extends: ['@webpack-contrib/eslint-config-webpack', 'prettier'], -}; diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index c76f8a99..00000000 --- a/.gitattributes +++ /dev/null @@ -1,5 +0,0 @@ -package-lock.json -diff -* text=auto -test/cases/* eol=lf -bin/* eol=lf -yarn.lock -diff diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index a3cedd77..00000000 --- a/.github/CODEOWNERS +++ /dev/null @@ -1,6 +0,0 @@ -# These are the default owners for everything in -# webpack-contrib -@webpack-contrib/org-maintainers - -# Add repository specific users / groups -# below here for libs that are not maintained by the org. \ No newline at end of file diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md deleted file mode 100644 index ad35b1f5..00000000 --- a/.github/CONTRIBUTING.md +++ /dev/null @@ -1,160 +0,0 @@ -# Contributing in @webpack-contrib - -We'd always love contributions to further improve the webpack / webpack-contrib ecosystem! -Here are the guidelines we'd like you to follow: - -- [Questions and Problems](#question) -- [Issues and Bugs](#issue) -- [Feature Requests](#feature) -- [Pull Request Submission Guidelines](#submit-pr) -- [Commit Message Conventions](#commit) - -## Got a Question or Problem? - -Please submit support requests and questions to StackOverflow using the tag [[webpack]](http://stackoverflow.com/tags/webpack). -StackOverflow is better suited for this kind of support though you may also inquire in [Webpack Gitter](https://gitter.im/webpack/webpack). -The issue tracker is for bug reports and feature discussions. - -## Found an Issue or Bug? - -Before you submit an issue, please search the issue tracker, maybe an issue for your problem already exists and the discussion might inform you of workarounds readily available. - -We want to fix all the issues as soon as possible, but before fixing a bug we need to reproduce and confirm it. In order to reproduce bugs, we ask that you to provide a minimal reproduction scenario (github repo or failing test case). Having a live, reproducible scenario gives us a wealth of important information without going back & forth to you with additional questions like: - -- version of Webpack used -- version of the loader / plugin you are creating a bug report for -- the use-case that fails - -A minimal reproduce scenario allows us to quickly confirm a bug (or point out config problems) as well as confirm that we are fixing the right problem. - -We will be insisting on a minimal reproduce scenario in order to save maintainers time and ultimately be able to fix more bugs. We understand that sometimes it might be hard to extract essentials bits of code from a larger code-base but we really need to isolate the problem before we can fix it. - -Unfortunately, we are not able to investigate / fix bugs without a minimal reproduction, so if we don't hear back from you we are going to close an issue that doesn't have enough info to be reproduced. - -## Feature Requests? - -You can _request_ a new feature by creating an issue on Github. - -If you would like to _implement_ a new feature, please submit an issue with a proposal for your work `first`, to be sure that particular makes sense for the project. - -## Pull Request Submission Guidelines - -Before you submit your Pull Request (PR) consider the following guidelines: - -- Search Github for an open or closed PR that relates to your submission. You don't want to duplicate effort. -- Commit your changes using a descriptive commit message that follows our [commit message conventions](#commit). Adherence to these conventions is necessary because release notes are automatically generated from these messages. -- Fill out our `Pull Request Template`. Your pull request will not be considered if it is ignored. -- Please sign the `Contributor License Agreement (CLA)` when a pull request is opened. We cannot accept your pull request without this. Make sure you sign with the primary email address associated with your local / github account. - -## Webpack Contrib Commit Conventions - -Each commit message consists of a **header**, a **body** and a **footer**. The header has a special -format that includes a **type**, a **scope** and a **subject**: - -``` -(): - - - -