{"_id":"@calebmer/extract-text-webpack-plugin","_rev":"3-b81b72b95c269df29e50ff6536319572","name":"@calebmer/extract-text-webpack-plugin","dist-tags":{"latest":"4.0.2"},"versions":{"4.0.0":{"name":"@calebmer/extract-text-webpack-plugin","version":"4.0.0","author":{"name":"Tobias Koppers @sokra"},"description":"Extract text from bundle into a file.","license":"MIT","main":"dist/cjs.js","files":["dist","schema"],"scripts":{"start":"npm run build -- -w","appveyor:test":"npm run test","build":"cross-env NODE_ENV=production babel src -d dist --ignore 'src/**/*.test.js'","build:example":"(cd example && webpack)","clean":"del-cli dist","lint":"eslint --cache src test","lint-staged":"lint-staged","prebuild":"npm run clean","prepublish":"npm run build","release":"standard-version","security":"nsp check","test":"jest","test:watch":"jest --watch","test:coverage":"jest --collectCoverageFrom='src/**/*.js' --coverage","travis:lint":"npm run lint && npm run security","travis:test":"npm run test -- --runInBand","travis:coverage":"npm run test:coverage -- --runInBand","webpack-defaults":"webpack-defaults"},"dependencies":{"loader-utils":"^1.1.0","neo-async":"^2.5.0","schema-utils":"^0.3.0","webpack-sources":"^1.0.1"},"devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^21.2.0","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-polyfill":"^6.26.0","babel-preset-env":"^1.6.1","cross-env":"^5.1.0","css-loader":"^0.28.7","del-cli":"^1.1.0","eslint":"^4.9.0","eslint-config-webpack":"^1.2.5","eslint-plugin-import":"^2.8.0","file-loader":"^1.1.5","jest":"^21.2.1","lint-staged":"^4.3.0","nsp":"^2.8.1","pre-commit":"^1.2.2","raw-loader":"^0.5.1","standard-version":"^4.2.0","style-loader":"^0.19.0","webpack":"^3.8.1","webpack-defaults":"^1.6.0"},"engines":{"node":">= 4.8 < 5.0.0 || >= 5.10"},"peerDependencies":{"webpack":"^3.1.0"},"homepage":"http://github.com/webpack-contrib/extract-text-webpack-plugin","repository":{"type":"git","url":"git+ssh://git@github.com/webpack-contrib/extract-text-webpack-plugin.git"},"pre-commit":"lint-staged","lint-staged":{"*.js":["eslint --fix","git add"]},"gitHead":"059f307415928d4ed538d0259a13a3dbd7923616","bugs":{"url":"https://github.com/webpack-contrib/extract-text-webpack-plugin/issues"},"_id":"@calebmer/extract-text-webpack-plugin@4.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"calebmer","email":"calebmeredith8@gmail.com"},"dist":{"integrity":"sha512-cQl5e7ZFucoQvqrJ7UlhHQmL0eSjWDpYZCZ6dS//gJPRNW77QETgRtJDlGEdF1KebX6t0c+AMD0YkeaGvn54Pw==","shasum":"dc03d2ef31d7ae3ff254e5d84673b02f1d0cd9fa","tarball":"https://registry.npmjs.org/@calebmer/extract-text-webpack-plugin/-/extract-text-webpack-plugin-4.0.0.tgz","fileCount":13,"unpackedSize":48462,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa3TTQCRA9TVsSAnZWagAAPRcP/i+qXibRqjCTsHKa0Crj\numNPnmVF4X0zDSgwSGMC7ypj5sF45+Se+oryjidcArqslzqt+yEvAlEEEqzu\nbAR0avvKTQDR15+8sgRfC7rbh5g2EwMXjkMEVwXEVQDUQ11aKuH/kOWBSJM8\nkSf76ZO4wwMEBUvGRY9aAFW3e1dbv0MZC2nm7rUcAwmuspw9czDtd8+bAkGI\nZ2tImaATKgi7S9mbtNiiTy2UgBtZ8Ip4bSz9rJQoDWhAspIcQI/wl2YUj8o1\n3olw/Ts9iggd1FzC48jcDHDzMq7PtriOOmUwetbkeKyVGfhvim62P0qTug8/\nhYQXD6/nLr1dPr6Zg6L+JdVsPST6ryvYAnudKWLrNP0evcYd/3GbTGsjS5Vy\nj5UgxjpkPw3ZJAo2I63eC+WsPkX0g9/fTGFdkoAX7GjGhwbjgdb4XHQGbSdT\nQwr9pmvMrxGjtOHjTFz/jE8LWvqqxffDnI7lT1tMhtRbFSVnjTL5w/GKI5lm\nA/q4vzA0nxQi6Q+MRO6XTS55Qk1JpjzFqQp8Ab6FdTcm8eYnwxEHdhWC+Zcw\n4enUs9eTS8gHFmuKDL8f86RazLMmDvktOBXZfcjKbmDL1vvkkm42PcclRWvv\nGI0mf5BbuW8c2wV77XvPNKUbkbNjTU7oTGlI2LlXQRMQQPanOfDwJoJY5htf\nISod\r\n=fXTL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGP6qF4tPrOUuh6CM2xrDc9nBPqlAns6wjZoUsVif9PQIgZF+EjcXpVmCAkESmLcnxUdMFbISB7ryIa8/Wvkv72RA="}]},"maintainers":[{"name":"calebmer","email":"calebmeredith8@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/extract-text-webpack-plugin_4.0.0_1524446414969_0.9078272544747712"},"_hasShrinkwrap":false},"4.0.1":{"name":"@calebmer/extract-text-webpack-plugin","version":"4.0.1","description":"Extract text from bundle into a file.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/webpack-contrib/extract-text-webpack-plugin.git"},"author":{"name":"Tobias Koppers @sokra"},"homepage":"https://github.com/webpack-contrib/extract-text-webpack-plugin","bugs":{"url":"https://github.com/webpack-contrib/extract-text-webpack-plugin/issues"},"main":"dist/cjs.js","engines":{"node":">= 6.9.0 || >= 8.9.0"},"scripts":{"start":"npm run build -- -w","build":"cross-env NODE_ENV=production babel src -d dist --ignore 'src/**/*.test.js' --copy-files","clean":"del-cli dist","commitlint":"commitlint","commitmsg":"commitlint -e $GIT_PARAMS","lint":"eslint --cache src test","ci:lint:commits":"commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}","lint-staged":"lint-staged","prebuild":"npm run clean","prepublish":"npm run build","release":"standard-version","release:ci":"conventional-github-releaser -p angular","release:validate":"commitlint --from=$(git describe --tags --abbrev=0) --to=$(git rev-parse HEAD)","security":"nsp check","test":"jest","test:watch":"jest --watch","test:coverage":"jest --collectCoverageFrom='src/**/*.js' --coverage","ci:lint":"npm run lint && npm run security","ci:test":"npm run test -- --runInBand","ci:coverage":"npm run test:coverage -- --runInBand","defaults":"webpack-defaults"},"files":["dist"],"keywords":["webpack"],"peerDependencies":{"webpack":"^3.0.0 || ^4.0.0"},"dependencies":{"async":"^2.4.1","glob":"^7.1.2","loader-utils":"^1.1.0","schema-utils":"^0.4.5","webpack-sources":"^1.1.0"},"devDependencies":{"@commitlint/cli":"^5.2.8","@commitlint/config-angular":"^5.1.1","@webpack-contrib/eslint-config-webpack":"^2.0.2","babel-cli":"^6.26.0","babel-jest":"^22.2.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-polyfill":"^6.26.0","babel-preset-env":"^1.6.1","conventional-github-releaser":"^2.0.0","cross-env":"^5.1.3","css-loader":"^0.28.9","del":"^3.0.0","del-cli":"^1.1.0","eslint":"^4.17.0","eslint-plugin-import":"^2.8.0","eslint-plugin-prettier":"^2.6.0","file-loader":"^1.1.6","husky":"^0.14.3","jest":"^22.3.0","lint-staged":"^6.1.0","memory-fs":"^0.4.1","nsp":"^3.1.0","pre-commit":"^1.2.2","prettier":"^1.10.2","raw-loader":"^0.5.1","standard-version":"^4.3.0","style-loader":"^0.19.1","webpack":"^4.1.1","webpack-defaults":"^2.1.4"},"jest":{"testEnvironment":"node"},"pre-commit":"lint-staged","lint-staged":{"*.js":["eslint --fix","git add"]},"gitHead":"3881dac83623290f43099d69f2cc6d702e3ee7b0","_id":"@calebmer/extract-text-webpack-plugin@4.0.1","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"calebmer","email":"calebmeredith8@gmail.com"},"dist":{"integrity":"sha512-4uSnBrTmHcKrB08DSvChfG+XJDhQODYgAMRn2wFOGmy/j7xAZoMBPTLboktCKkltIWogaC20qTvaNRsIDfxMXg==","shasum":"bb450c1b8409bbd9fbc67cf73915123a0f7192f9","tarball":"https://registry.npmjs.org/@calebmer/extract-text-webpack-plugin/-/extract-text-webpack-plugin-4.0.1.tgz","fileCount":13,"unpackedSize":49190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa3Tb5CRA9TVsSAnZWagAA9rkP/iKHQLO821CRmVOOyVxa\nw9h8CwRsV4sndoCKv/gGoBVhatKAc2y99PKyKIRBUAekyiEayKSQdMrBPhu3\nk8jN2AjX76Q0y0WBsV70zNcQ0XrhVvLtFqRtyy3xFsKPicI6G/JoAY2b8lQc\nsWOLxSXtRcJ8Zf2ntHU2Ay9o864kLUrQxcUeJD3YIogqD5TzPhgtkIClWrLI\nfTGNSSsJyvc6YHsiVMM3dgJlYHzmdcQos2csrltmZyDspvtAlFL7WIU8VxtL\nT2BdtG8wfv0QrREY0FAwu/XVi9D3WyJHtueztbyHWKbCjidbTDlis5sEXgzY\nOsOamfb2/WdQWs6SNAPs3sC+BjGxkwL1zB+Ges9YFSi0Qcn7yU5mE3758DuS\nDn2kfd5ypnUt15W/EPoj5Jlru1CNeJcxQpbUV8LyA/rhN2qACmNupBLQiFsE\nqfzfgGo18WYAizUNpTf40tUMcGnQb1bULYrjYO4w7wzavP8JsynB/Djazxa8\n790rypFyGCFAsimn7ldtiA823ls1rrp4w7UgOI/1ipJ/0ncx0tyWwEobrlw5\nJbI3XNER3FT9g4J4nQu7v/Cgzw6C21eIDcPnRCBc7CnpjBUXaBnTG2Fjxej8\nl5CJIRnh/FcW4rXK/FAE38Elm2qwl25b5UOZ4/CF+bSihFe9svso1nujNnwq\nIrP5\r\n=Rjpl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA/fLqPcijWz+jD1mfC6uazwMpPQBVaRhgLpQpmRakcaAiEA/ACUKyQfVyyrdv5uIwCkurafCvToZIBCP1L36CEwXfg="}]},"maintainers":[{"name":"calebmer","email":"calebmeredith8@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/extract-text-webpack-plugin_4.0.1_1524446968424_0.5470893735389055"},"_hasShrinkwrap":false},"4.0.2":{"name":"@calebmer/extract-text-webpack-plugin","version":"4.0.2","description":"Extract text from bundle into a file.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/webpack-contrib/extract-text-webpack-plugin.git"},"author":{"name":"Tobias Koppers @sokra"},"homepage":"https://github.com/webpack-contrib/extract-text-webpack-plugin","bugs":{"url":"https://github.com/webpack-contrib/extract-text-webpack-plugin/issues"},"main":"dist/cjs.js","engines":{"node":">= 6.9.0 || >= 8.9.0"},"scripts":{"start":"npm run build -- -w","build":"cross-env NODE_ENV=production babel src -d dist --ignore 'src/**/*.test.js' --copy-files","clean":"del-cli dist","commitlint":"commitlint","commitmsg":"commitlint -e $GIT_PARAMS","lint":"eslint --cache src test","ci:lint:commits":"commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}","lint-staged":"lint-staged","prebuild":"npm run clean","prepublish":"npm run build","release":"standard-version","release:ci":"conventional-github-releaser -p angular","release:validate":"commitlint --from=$(git describe --tags --abbrev=0) --to=$(git rev-parse HEAD)","security":"nsp check","test":"jest","test:watch":"jest --watch","test:coverage":"jest --collectCoverageFrom='src/**/*.js' --coverage","ci:lint":"npm run lint && npm run security","ci:test":"npm run test -- --runInBand","ci:coverage":"npm run test:coverage -- --runInBand","defaults":"webpack-defaults"},"files":["dist"],"keywords":["webpack"],"peerDependencies":{"webpack":"^3.0.0 || ^4.0.0"},"dependencies":{"async":"^2.4.1","glob":"^7.1.2","loader-utils":"^1.1.0","schema-utils":"^0.4.5","webpack-sources":"^1.1.0"},"devDependencies":{"@commitlint/cli":"^5.2.8","@commitlint/config-angular":"^5.1.1","@webpack-contrib/eslint-config-webpack":"^2.0.2","babel-cli":"^6.26.0","babel-jest":"^22.2.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-polyfill":"^6.26.0","babel-preset-env":"^1.6.1","conventional-github-releaser":"^2.0.0","cross-env":"^5.1.3","css-loader":"^0.28.9","del":"^3.0.0","del-cli":"^1.1.0","eslint":"^4.17.0","eslint-plugin-import":"^2.8.0","eslint-plugin-prettier":"^2.6.0","file-loader":"^1.1.6","husky":"^0.14.3","jest":"^22.3.0","lint-staged":"^6.1.0","memory-fs":"^0.4.1","nsp":"^3.1.0","pre-commit":"^1.2.2","prettier":"^1.10.2","raw-loader":"^0.5.1","standard-version":"^4.3.0","style-loader":"^0.19.1","webpack":"^4.1.1","webpack-defaults":"^2.1.4"},"jest":{"testEnvironment":"node"},"pre-commit":"lint-staged","lint-staged":{"*.js":["eslint --fix","git add"]},"gitHead":"2193c93d27f175f24b929242f8e61fcd5170d503","_id":"@calebmer/extract-text-webpack-plugin@4.0.2","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"calebmer","email":"calebmeredith8@gmail.com"},"dist":{"integrity":"sha512-jLZsUQykKj2K7ZA97mcRqcbwxraudRSWTy20DAZGq31Jc/qRTfPWSBVwfakC8DxDrI1zBbIkwNSxppl746Rw7g==","shasum":"dd0bf2e2ed4702cbd63ec2152735685eb0570cc6","tarball":"https://registry.npmjs.org/@calebmer/extract-text-webpack-plugin/-/extract-text-webpack-plugin-4.0.2.tgz","fileCount":13,"unpackedSize":49104,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa3TeSCRA9TVsSAnZWagAAmqoP/iG6VVShTruW3038J2qE\nTwA245vRyKupu7klsvFYt4PixFZpM3NZU/5NKabiO9PKQFbFc9vCagZX+p/9\n+Bdmw9MTJDg8xjKH97LzJkQuGwqcwODcbX+0IQcdGJCDjgmk2PeUEyBKjEJE\n3RBUtexcXxMseD58nQIfUre891IMYYwNoJPw5Sin1cB03gl4/ZWO3vrSz4jB\niPYr+SxlOBK1F8y4GDIV9pWdzghApgMJZ2dVek/zCcmgbnxcxihfEACp/NKs\ndItQUFm7hbpcFuiXOnBim8NuOZmjk+IP7ukDEIBQzVMkTgHDmIeFhpD88KTP\nfPsKEf3jJaz6ZvfKVckHBe9zwIWebKVi9MEUQWAQRfQHjFUR0u03sa/7iFUn\nT/hT8MLGJTsxcir1l1xbTDD+CQcX4MlKzhXi2uJUbSFQJrdOF2AaYyt/Qgj+\nOJGMAn2FwH1FpfW14aeDSyqzMCI1nnes4T/w+OpRHIjJb0fv0wGNhjRSLlDr\nGbRVqseRVbSULh0d44sfWwQJna66uQPYiFUBlv0s+mQKlt2A7dQCzrK0pLXO\nEyKgNYMCEhGL2ITfZRCXJdnUenCnauIx5oNqjYaY6dNWLgwEpQ4Cp0oL+xRl\ntuC2s3YlPnjuDbHB8sNAHA5cnzS0oWS3FNCbICzCvV22TVPGxb8v6dh0+tXL\np/vG\r\n=s4dB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH91W/W1osZxiN/ZnkwczmE/51B96oNCiIMPJ4Qf0Z9bAiEAvpm/vHtl5wKzyYWcb45YZFtW7zwPQNdtNYVbxzKxDiQ="}]},"maintainers":[{"name":"calebmer","email":"calebmeredith8@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/extract-text-webpack-plugin_4.0.2_1524447122081_0.03269548471633077"},"_hasShrinkwrap":false}},"time":{"created":"2018-04-23T01:20:14.888Z","4.0.0":"2018-04-23T01:20:15.044Z","modified":"2022-04-04T21:31:56.360Z","4.0.1":"2018-04-23T01:29:28.563Z","4.0.2":"2018-04-23T01:32:02.198Z"},"maintainers":[{"name":"calebmer","email":"calebmeredith8@gmail.com"}],"description":"Extract text from bundle into a file.","homepage":"https://github.com/webpack-contrib/extract-text-webpack-plugin","repository":{"type":"git","url":"git+https://github.com/webpack-contrib/extract-text-webpack-plugin.git"},"author":{"name":"Tobias Koppers @sokra"},"bugs":{"url":"https://github.com/webpack-contrib/extract-text-webpack-plugin/issues"},"license":"MIT","readme":"[![npm][npm]][npm-url]\n[![node][node]][node-url]\n[![deps][deps]][deps-url]\n[![tests][tests]][tests-url]\n[![coverage][cover]][cover-url]\n[![chat][chat]][chat-url]\n\n<div align=\"center\">\n  <img width=\"200\" height=\"200\"\n    src=\"https://cdn.rawgit.com/webpack-contrib/extract-text-webpack-plugin/574e3200/logo.svg\">\n  <a href=\"https://github.com/webpack/webpack\">\n    <img width=\"200\" height=\"200\"\n      src=\"https://webpack.js.org/assets/icon-square-big.svg\">\n  </a>\n  <h1>Extract Text Plugin</h1>\n  <p>Extract text from a bundle, or bundles, into a separate file.</p>\n</div>\n\n<h2 align=\"center\">Install</h2>\n\n```bash\n# for webpack 3\nnpm install --save-dev extract-text-webpack-plugin\n# for webpack 2\nnpm install --save-dev extract-text-webpack-plugin@2.1.2\n# for webpack 1\nnpm install --save-dev extract-text-webpack-plugin@1.0.1\n```\n\n<h2 align=\"center\">Usage</h2>\n\n> :warning: For webpack v1, see [the README in the webpack-1 branch](https://github.com/webpack/extract-text-webpack-plugin/blob/webpack-1/README.md).\n\n```js\nconst ExtractTextPlugin = require(\"extract-text-webpack-plugin\");\n\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.css$/,\n        use: ExtractTextPlugin.extract({\n          fallback: \"style-loader\",\n          use: \"css-loader\"\n        })\n      }\n    ]\n  },\n  plugins: [\n    new ExtractTextPlugin(\"styles.css\"),\n  ]\n}\n```\n\nIt moves all the required `*.css` modules in entry chunks into a separate CSS file. So your styles are no longer inlined into the JS bundle, but in a separate CSS file (`styles.css`). If your total stylesheet volume is big, it will be faster because the CSS bundle is loaded in parallel to the JS bundle.\n\n|Advantages|Caveats|\n|:---------|:------|\n| Fewer style tags (older IE has a limit) | Additional HTTP request |\n| CSS SourceMap (with `devtool: \"source-map\"` and `extract-text-webpack-plugin?sourceMap`) | Longer compilation time |\n| CSS requested in parallel | No runtime public path modification |\n| CSS cached separate | No Hot Module Replacement |\n| Faster runtime (less code and DOM operations) | ... |\n\n<h2 align=\"center\">Options</h2>\n\n```js\nnew ExtractTextPlugin(options: filename | object)\n```\n\n|Name|Type|Description|\n|:--:|:--:|:----------|\n|**`id`**|`{String}`|Unique ident for this plugin instance. (For advanced usage only, by default automatically generated)|\n|**`filename`**|`{String\\|Function}`|Name of the result file. May contain `[name]`, `[id]` and `[contenthash]`|\n|**`allChunks`**|`{Boolean}`|Extract from all additional chunks too (by default it extracts only from the initial chunk(s))<br />When using `optimization.splitChunks` and there are extracted chunks (from `ExtractTextPlugin.extract`) in the commons chunk, `allChunks` **must** be set to `true`|\n|**`disable`**|`{Boolean}`|Disables the plugin|\n|**`ignoreOrder`**|`{Boolean}`|Disables order check (useful for CSS Modules!), `false` by default|\n\n* `[name]` name of the chunk\n* `[id]` number of the chunk\n* `[contenthash]` hash of the content of the extracted file\n* `[<hashType>:contenthash:<digestType>:<length>]` optionally you can configure\n  * other `hashType`s, e.g. `sha1`, `md5`, `sha256`, `sha512`\n  * other `digestType`s, e.g. `hex`, `base26`, `base32`, `base36`, `base49`, `base52`, `base58`, `base62`, `base64`\n  * and `length`, the length of the hash in chars\n\n> :warning: `ExtractTextPlugin` generates a file **per entry**, so you must use `[name]`, `[id]` or `[contenthash]` when using multiple entries.\n\n#### `#extract`\n\n```js\nExtractTextPlugin.extract(options: loader | object)\n```\n\nCreates an extracting loader from an existing loader. Supports loaders of type `{ loader: [name]-loader -> {String}, options: {} -> {Object} }`.\n\n|Name|Type|Description|\n|:--:|:--:|:----------|\n|**`options.use`**|`{String}`/`{Array}`/`{Object}`|Loader(s) that should be used for converting the resource to a CSS exporting module _(required)_|\n|**`options.fallback`**|`{String}`/`{Array}`/`{Object}`|loader(e.g `'style-loader'`) that should be used when the CSS is not extracted (i.e. in an additional chunk when `allChunks: false`)|\n|**`options.publicPath`**|`{String}`|Override the `publicPath` setting for this loader|\n\n\n#### Multiple Instances\n\nThere is also an `extract` function on the instance. You should use this if you have more than one instance of  `ExtractTextPlugin`.\n\n```js\nconst ExtractTextPlugin = require('extract-text-webpack-plugin');\n\n// Create multiple instances\nconst extractCSS = new ExtractTextPlugin('stylesheets/[name]-one.css');\nconst extractLESS = new ExtractTextPlugin('stylesheets/[name]-two.css');\n\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.css$/,\n        use: extractCSS.extract([ 'css-loader', 'postcss-loader' ])\n      },\n      {\n        test: /\\.less$/i,\n        use: extractLESS.extract([ 'css-loader', 'less-loader' ])\n      },\n    ]\n  },\n  plugins: [\n    extractCSS,\n    extractLESS\n  ]\n};\n```\n\n### Extracting Sass or LESS\n\nThe configuration is the same, switch out `sass-loader` for `less-loader` when necessary.\n\n```js\nconst ExtractTextPlugin = require('extract-text-webpack-plugin');\n\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.scss$/,\n        use: ExtractTextPlugin.extract({\n          fallback: 'style-loader',\n          use: ['css-loader', 'sass-loader']\n        })\n      }\n    ]\n  },\n  plugins: [\n    new ExtractTextPlugin('style.css')\n    //if you want to pass in options, you can do so:\n    //new ExtractTextPlugin({\n    //  filename: 'style.css'\n    //})\n  ]\n}\n```\n\n### `url()` Resolving\n\nIf you are finding that urls are not resolving properly when you run webpack. You can expand your loader functionality with options. The `url: false` property allows your paths resolved without any changes.\n\n```js\nconst ExtractTextPlugin = require('extract-text-webpack-plugin');\n\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.scss$/,\n        use: ExtractTextPlugin.extract({\n          fallback: 'style-loader',\n          use: [\n            {\n                loader: 'css-loader',\n                options: {\n                    // If you are having trouble with urls not resolving add this setting.\n                    // See https://github.com/webpack-contrib/css-loader#url\n                    url: false,\n                    minimize: true,\n                    sourceMap: true\n                }\n            }, \n            {\n                loader: 'sass-loader',\n                options: {\n                    sourceMap: true\n                }\n            }\n          ]\n        })\n      }\n    ]\n  }\n}\n```\n\n### Modify filename\n\n`filename` parameter could be `Function`. It passes `getPath` to process the format like `css/[name].css` and returns the real file name, `css/js/a.css`. You can replace `css/js` with `css` then you will get the new path `css/a.css`.\n\n\n```js\nentry: {\n  'js/a': \"./a\"\n},\nplugins: [\n  new ExtractTextPlugin({\n    filename:  (getPath) => {\n      return getPath('css/[name].css').replace('css/js', 'css');\n    },\n    allChunks: true\n  })\n]\n```\n\n<h2 align=\"center\">Maintainers</h2>\n\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\">\n        <img width=\"150\" height=\"150\"\n        src=\"https://avatars3.githubusercontent.com/u/166921?v=3&s=150\">\n        </br>\n        <a href=\"https://github.com/bebraw\">Juho Vepsäläinen</a>\n      </td>\n      <td align=\"center\">\n        <img width=\"150\" height=\"150\"\n        src=\"https://avatars2.githubusercontent.com/u/8420490?v=3&s=150\">\n        </br>\n        <a href=\"https://github.com/d3viant0ne\">Joshua Wiens</a>\n      </td>\n      <td align=\"center\">\n        <img width=\"150\" height=\"150\"\n        src=\"https://avatars3.githubusercontent.com/u/533616?v=3&s=150\">\n        </br>\n        <a href=\"https://github.com/SpaceK33z\">Kees Kluskens</a>\n      </td>\n      <td align=\"center\">\n        <img width=\"150\" height=\"150\"\n        src=\"https://avatars3.githubusercontent.com/u/3408176?v=3&s=150\">\n        </br>\n        <a href=\"https://github.com/TheLarkInn\">Sean Larkin</a>\n      </td>\n    </tr>\n  <tbody>\n</table>\n\n\n[npm]: https://img.shields.io/npm/v/extract-text-webpack-plugin.svg\n[npm-url]: https://npmjs.com/package/extract-text-webpack-plugin\n\n[node]: https://img.shields.io/node/v/extract-text-webpack-plugin.svg\n[node-url]: https://nodejs.org\n\n[deps]: https://david-dm.org/webpack-contrib/extract-text-webpack-plugin.svg\n[deps-url]: https://david-dm.org/webpack-contrib/extract-text-webpack-plugin\n\n[tests]: http://img.shields.io/travis/webpack-contrib/extract-text-webpack-plugin.svg\n[tests-url]: https://travis-ci.org/webpack-contrib/extract-text-webpack-plugin\n\n[cover]: https://coveralls.io/repos/github/webpack-contrib/extract-text-webpack-plugin/badge.svg\n[cover-url]: https://coveralls.io/github/webpack-contrib/extract-text-webpack-plugin\n\n[chat]: https://badges.gitter.im/webpack/webpack.svg\n[chat-url]: https://gitter.im/webpack/webpack\n","readmeFilename":"README.md","keywords":["webpack"]}