├── .babelrc ├── .editorconfig ├── .eslintignore ├── .eslintrc.json ├── .github └── workflows │ └── release.yml ├── .gitignore ├── .nycrc ├── .releaserc.json ├── .travis.yml ├── CHANGELOG.md ├── LICENSE ├── README.md ├── examples ├── index-html │ ├── app │ │ ├── hi.jpg │ │ ├── index.html │ │ ├── main.css │ │ └── main.js │ ├── package.json │ └── webpack.config.js └── main-css │ ├── app │ └── main.css │ ├── index.html │ ├── package.json │ └── webpack.config.js ├── package.json ├── src └── extractLoader.js └── test ├── .eslintrc.json ├── extractLoader.test.js ├── mocha.opts ├── modules ├── deep.css ├── error-resolve-loader.js ├── error-resolve.js ├── error-syntax.js ├── error-to-string.js ├── hi.jpg ├── img.css ├── img.html ├── img.js ├── loader.html ├── simple-css-with-query-params-and-loader.js ├── simple-css-with-query-params.js ├── simple.css ├── simple.html ├── simple.js └── stylesheet.html └── support └── compile.js /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/.babelrc -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/.gitignore -------------------------------------------------------------------------------- /.nycrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/.nycrc -------------------------------------------------------------------------------- /.releaserc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/.releaserc.json -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/README.md -------------------------------------------------------------------------------- /examples/index-html/app/hi.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/examples/index-html/app/hi.jpg -------------------------------------------------------------------------------- /examples/index-html/app/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/examples/index-html/app/index.html -------------------------------------------------------------------------------- /examples/index-html/app/main.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: url(hi.jpg); 3 | } 4 | -------------------------------------------------------------------------------- /examples/index-html/app/main.js: -------------------------------------------------------------------------------- 1 | console.log("hi"); 2 | -------------------------------------------------------------------------------- /examples/index-html/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/examples/index-html/package.json -------------------------------------------------------------------------------- /examples/index-html/webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/examples/index-html/webpack.config.js -------------------------------------------------------------------------------- /examples/main-css/app/main.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: hotpink; 3 | } 4 | -------------------------------------------------------------------------------- /examples/main-css/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/examples/main-css/index.html -------------------------------------------------------------------------------- /examples/main-css/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/examples/main-css/package.json -------------------------------------------------------------------------------- /examples/main-css/webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/examples/main-css/webpack.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/package.json -------------------------------------------------------------------------------- /src/extractLoader.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/src/extractLoader.js -------------------------------------------------------------------------------- /test/.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/test/.eslintrc.json -------------------------------------------------------------------------------- /test/extractLoader.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/test/extractLoader.test.js -------------------------------------------------------------------------------- /test/mocha.opts: -------------------------------------------------------------------------------- 1 | --require babel-register 2 | --timeout 5000 3 | -------------------------------------------------------------------------------- /test/modules/deep.css: -------------------------------------------------------------------------------- 1 | @import "./img.css"; 2 | -------------------------------------------------------------------------------- /test/modules/error-resolve-loader.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/test/modules/error-resolve-loader.js -------------------------------------------------------------------------------- /test/modules/error-resolve.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/test/modules/error-resolve.js -------------------------------------------------------------------------------- /test/modules/error-syntax.js: -------------------------------------------------------------------------------- 1 | this is a syntax error 2 | -------------------------------------------------------------------------------- /test/modules/error-to-string.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/test/modules/error-to-string.js -------------------------------------------------------------------------------- /test/modules/hi.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/test/modules/hi.jpg -------------------------------------------------------------------------------- /test/modules/img.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: url(hi.jpg); 3 | } 4 | -------------------------------------------------------------------------------- /test/modules/img.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/test/modules/img.html -------------------------------------------------------------------------------- /test/modules/img.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/test/modules/img.js -------------------------------------------------------------------------------- /test/modules/loader.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/test/modules/loader.html -------------------------------------------------------------------------------- /test/modules/simple-css-with-query-params-and-loader.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/test/modules/simple-css-with-query-params-and-loader.js -------------------------------------------------------------------------------- /test/modules/simple-css-with-query-params.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/test/modules/simple-css-with-query-params.js -------------------------------------------------------------------------------- /test/modules/simple.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: hotpink; 3 | } 4 | -------------------------------------------------------------------------------- /test/modules/simple.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/test/modules/simple.html -------------------------------------------------------------------------------- /test/modules/simple.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable import/unambiguous */ 2 | module.exports = "hello"; 3 | -------------------------------------------------------------------------------- /test/modules/stylesheet.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/test/modules/stylesheet.html -------------------------------------------------------------------------------- /test/support/compile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peerigon/extract-loader/HEAD/test/support/compile.js --------------------------------------------------------------------------------