{"_id":"@applaud/mini-css-extract-plugin","_rev":"1-2ac4e2e49d064a503a77c8ea718792ab","name":"@applaud/mini-css-extract-plugin","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@applaud/mini-css-extract-plugin","version":"1.0.0","description":"extracts CSS into separate files","license":"MIT","repository":{"type":"git","url":"git+https://github.com/Applaud-devpack/mini-css-extract-plugin.git"},"author":{"name":"Applaud"},"homepage":"https://github.com/Applaud-devpack/mini-css-extract-plugin","bugs":{"url":"https://github.com/Applaud-devpack/mini-css-extract-plugin/issues"},"main":"dist/cjs.js","engines":{"node":">= 6.9.0 <7.0.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","test:manual":"webpack-dev-server test/manual/src/index.js --open --config test/manual/webpack.config.js","ci:lint":"npm run lint && npm run security","ci:test":"npm run test -- --runInBand","ci:coverage":"npm run test:coverage -- --runInBand","defaults":"webpack-defaults"},"dependencies":{"schema-utils":"^1.0.0","loader-utils":"^1.1.0","webpack-sources":"^1.1.0"},"devDependencies":{"@commitlint/cli":"^6.1.3","@commitlint/config-conventional":"^6.1.3","@webpack-contrib/eslint-config-webpack":"^2.0.4","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.2","cross-env":"^5.1.3","css-loader":"^0.28.10","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.11","husky":"^0.14.3","jest":"^22.2.2","lint-staged":"^6.1.0","memory-fs":"^0.4.1","nsp":"^3.1.0","pre-commit":"^1.2.2","prettier":"^1.11.1","standard-version":"^4.3.0","webpack":"npm:@applaud/webpack@^1.0.2","webpack-cli":"^2.0.13","webpack-defaults":"^2.3.0","webpack-dev-server":"^3.1.1"},"keywords":["webpack","applaud"],"pre-commit":"lint-staged","lint-staged":{"*.js":["eslint --fix","git add"]},"gitHead":"1dec2366ea602792bb23b4b4daf09854ee7c9c34","_id":"@applaud/mini-css-extract-plugin@1.0.0","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-HD9WDcHjKjOHpflu0NEaWoHo6aExij3Fji3deEzBTucY1mPfuCZNT18+Ug5Fbkb+ZHFN+e+jDIxL6QXLlMFwFg==","shasum":"90b96ff08cdd17e347c4e3f10fc2cfd78fa33586","tarball":"https://registry.npmjs.org/@applaud/mini-css-extract-plugin/-/mini-css-extract-plugin-1.0.0.tgz","fileCount":7,"unpackedSize":36998,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4jHD84ON6WrB5MSA1zifXlnXXaUj4ukYqH/43KWbcnQIgE8y6dC7XffC/JQ28QvlFv5LfJBVgoJSvC3ZhwWqhOWM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdNmZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqkhw/+I+bNwG3GRh6LlwdVHzfQDwuDb5KoJXFNM08vQbQcAurwvn5Z\r\nTU+zwXcYdESmC0Nioq1rrtvZEHpzZF/14s69Y3e1eLqzzAe/e4m2UcAnANzu\r\nEWRZlm8bSqp6ldOSaO+aYTd4Tik03q4kB2xzlXs06bRg7xgJGfY95cJK4NZK\r\nG3t2LpQxLvDYAopKlOI1sfu1vatab3ffCZ2KyqMG3nx7NymsMRECqrZHIW4R\r\n9BU6xhYC981v9sSCk+/AYFuNCaDHzAG8MFkHoA22ZTLqFDt4YuL9HDEBu72r\r\nrVCuTsFp5e7Bomw3dp4ePqc3RC/sn6IQtDagHRxTFuURKsFIqDQdMGRb2n+J\r\nPwO22o4E9/b76bh8DhOGiiDki1VU8o9Cl3QW6Tw9jMlCZqk9dPs381+0Qw2z\r\ndT3WZb/hk2x7Bp9HtfrnbdnDRGU8sutGW3lpnM+oa3yYphJgxwBbUY/fvjyJ\r\nOmqam8ZvsHVKP+HUG2Zir+tKT9jtQuDsc8BYNzUeZY2AefAEYdGkrIb7CIC5\r\nUHaRmP74X1daAUoSYLSy04+CId0pE5RZt99ubGXMIZAH37wcfBEZ/ejI0mKg\r\nQ+wZRxGEPLn0ZqquOOzjrigXu9ENYCJ/ChNB2Bs/GPjBvknaO87CN9/W3ObV\r\nXyWJBdfb7Vqmmvq/rBkSnXEtYp+71y/dtds=\r\n=2VBF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mahesh_reddy","email":"applaud.devpack@gmail.com"},"directories":{},"maintainers":[{"name":"mahesh_reddy","email":"applaud.devpack@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mini-css-extract-plugin_1.0.0_1668602265742_0.9242563595585154"},"_hasShrinkwrap":false},"1.0.1":{"name":"@applaud/mini-css-extract-plugin","version":"1.0.1","description":"extracts CSS into separate files","license":"MIT","repository":{"type":"git","url":"git+https://github.com/Applaud-devpack/mini-css-extract-plugin.git"},"author":{"name":"Applaud"},"homepage":"https://github.com/Applaud-devpack/mini-css-extract-plugin","bugs":{"url":"https://github.com/Applaud-devpack/mini-css-extract-plugin/issues"},"main":"dist/cjs.js","engines":{"node":">= 6.9.0 <7.0.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","test:manual":"webpack-dev-server test/manual/src/index.js --open --config test/manual/webpack.config.js","ci:lint":"npm run lint && npm run security","ci:test":"npm run test -- --runInBand","ci:coverage":"npm run test:coverage -- --runInBand","defaults":"webpack-defaults"},"dependencies":{"schema-utils":"^1.0.0","loader-utils":"^2.0.3","webpack-sources":"^1.1.0"},"devDependencies":{"@commitlint/cli":"^6.1.3","@commitlint/config-conventional":"^6.1.3","@webpack-contrib/eslint-config-webpack":"^2.0.4","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.2","cross-env":"^5.1.3","css-loader":"^0.28.10","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.11","husky":"^0.14.3","jest":"^22.2.2","lint-staged":"^6.1.0","memory-fs":"^0.4.1","nsp":"^3.1.0","pre-commit":"^1.2.2","prettier":"^1.11.1","standard-version":"^4.3.0","webpack":"npm:@applaud/webpack@^1.0.2","webpack-cli":"^2.0.13","webpack-defaults":"^2.3.0","webpack-dev-server":"^3.1.1"},"keywords":["webpack","applaud"],"pre-commit":"lint-staged","lint-staged":{"*.js":["eslint --fix","git add"]},"gitHead":"509e1bb6d7015a414656a6666ce2589d41d933e9","_id":"@applaud/mini-css-extract-plugin@1.0.1","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-2Pu+Ln0eKQgEDah3Nn53c8/6djIaf3SVyelGKuzqLSvsLMRkIz8ZiSODEVdYCXIw27rVNLgVpDh3wSUaxBU1+w==","shasum":"853ca2afb369695ec7e1d0751d118b82544e0033","tarball":"https://registry.npmjs.org/@applaud/mini-css-extract-plugin/-/mini-css-extract-plugin-1.0.1.tgz","fileCount":7,"unpackedSize":36998,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEB3afbAI47BZabIrlTxdWVtA61G1RRGPR3TFEfa1OQCAiAfqapWzuqV+GNhdzR6qwDkLgaR/k7+qv3nO3SJ1oIWPg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjezA1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrsoBAAhRv5KAROrh+UfQh+yggPkBZiuUOEdbzPq0ZYwMXzRYnVblJG\r\nbyqJIFSWNqTZ2BX+bE2Ij41m9PQEpNPtmtLnvNKgOcbvqNU0iLYXsTdqSfC/\r\ngLkvPd4uSSPlJ3OecBNWVzG6nTwouhJSEkFzcEcVDyHnm5VY3kvBo6VdMvQ9\r\n/MHvTsJYtetzJpN+2e59Gt4I9T1MB0aXmehKIWkBY0FMA1mcnoEWC0xbzrQZ\r\nHk8p4nXz3i0JDBJq4genVZkec9HpqLn1tyarcMIjTMH+g+2f0SQre2j+eVSP\r\nF4FoadxFaMpE2SjcK61VLk9H+ojL9sZmdEGuXNAngRXrl73rvt6XdbhcbSYB\r\nwBv4sIRN2FP44lBBuuJMsjXbPs+lpwem/WcRK+CyNavV5wbBL3PxtFB9AodO\r\nUhucUmC1CcxulHZgTEEf5C92S8m5GhvstjVZHMJOhl35yHpi4ijpsv3tnc3e\r\nmtvxI/czHnXKHOP/kP5GgQz27OLbEe+m5j7y2v7ni1Hz7jQ2anRioi52e8B/\r\nAzUiPI5F2747h6junnlTqcOJAfhGWuMeU6kkhTYli16R4zOuqGoukyViI8Lf\r\nBG3hml9ObrzVm5LYdiyXc0Rg5iTcZxvAUxgzIlMobszeD6XjelO4WGBsrzEK\r\npjXoUos5ViKZjUoK+unz+m28eSIfTVnQyMY=\r\n=N39i\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mahesh_reddy","email":"applaud.devpack@gmail.com"},"directories":{},"maintainers":[{"name":"mahesh_reddy","email":"applaud.devpack@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mini-css-extract-plugin_1.0.1_1669017653278_0.620431782723359"},"_hasShrinkwrap":false}},"time":{"created":"2022-11-16T12:37:45.693Z","1.0.0":"2022-11-16T12:37:45.901Z","modified":"2022-11-21T08:00:53.584Z","1.0.1":"2022-11-21T08:00:53.490Z"},"maintainers":[{"name":"mahesh_reddy","email":"applaud.devpack@gmail.com"}],"description":"extracts CSS into separate files","homepage":"https://github.com/Applaud-devpack/mini-css-extract-plugin","keywords":["webpack","applaud"],"repository":{"type":"git","url":"git+https://github.com/Applaud-devpack/mini-css-extract-plugin.git"},"author":{"name":"Applaud"},"bugs":{"url":"https://github.com/Applaud-devpack/mini-css-extract-plugin/issues"},"license":"MIT","readme":"<div align=\"center\">\n  <!-- replace with accurate logo e.g from https://worldvectorlogo.com/ -->\n  <img width=\"200\" height=\"200\" src=\"https://cdn.worldvectorlogo.com/logos/javascript.svg\">\n  <a href=\"https://webpack.js.org/\">\n    <img width=\"200\" height=\"200\" vspace=\"\" hspace=\"25\" src=\"https://cdn.rawgit.com/webpack/media/e7485eb2/logo/icon-square-big.svg\">\n  </a>\n  <h1>@applaud/mini-css-extract-plugin</h1>\n</div>\n\n[![npm][npm]][npm-url]\n[![deps][deps]][deps-url]\n[![tests][tests]][tests-url]\n[![coverage][cover]][cover-url]\n[![chat][chat]][chat-url]\n\nThis plugin extracts CSS into separate files. It creates a CSS file per JS file which contains CSS. It supports On-Demand-Loading of CSS and SourceMaps.\n\nIt builds on top of a new webpack v4 feature (module types) and requires webpack 4 to work.\n\nCompared to the extract-text-webpack-plugin:\n\n* Async loading\n* No duplicate compilation (performance)\n* Easier to use\n* Specific to CSS\n\nTODO:\n\n* HMR support\n\n<h2 align=\"center\">Install</h2>\n\n```bash\nnpm install --save-dev @applaud/mini-css-extract-plugin\n```\n\n<h2 align=\"center\">Usage</h2>\n\n### Configuration\n\n#### Minimal example\n\n**webpack.config.js**\n\n```js\nconst MiniCssExtractPlugin = require(\"@applaud/mini-css-extract-plugin\");\nmodule.exports = {\n  plugins: [\n    new MiniCssExtractPlugin({\n      // Options similar to the same options in webpackOptions.output\n      // both options are optional\n      filename: \"[name].css\",\n      chunkFilename: \"[id].css\"\n    })\n  ],\n  module: {\n    rules: [\n      {\n        test: /\\.css$/,\n        use: [\n          {\n            loader: MiniCssExtractPlugin.loader,\n            options: {\n              // you can specify a publicPath here\n              // by default it use publicPath in webpackOptions.output\n              publicPath: '../'\n            }\n          },\n          \"css-loader\"\n        ]\n      }\n    ]\n  }\n}\n```\n\n#### Advanced configuration example\n\nThis plugin should be used only on `production` builds without `style-loader` in the loaders chain, especially if you want to have HMR in `development`.\n\nHere is an example to have both HMR in `development` and your styles extracted in a file for `production` builds.\n\n(Loaders options left out for clarity, adapt accordingly to your needs.)\n\n\n**webpack.config.js**\n\n```js\nconst MiniCssExtractPlugin = require(\"@applaud/mini-css-extract-plugin\");\nconst devMode = process.env.NODE_ENV !== 'production'\n\nmodule.exports = {\n  plugins: [\n    new MiniCssExtractPlugin({\n      // Options similar to the same options in webpackOptions.output\n      // both options are optional\n      filename: devMode ? '[name].css' : '[name].[hash].css',\n      chunkFilename: devMode ? '[id].css' : '[id].[hash].css',\n    })\n  ],\n  module: {\n    rules: [\n      {\n        test: /\\.(sa|sc|c)ss$/,\n        use: [\n          devMode ? 'style-loader' : MiniCssExtractPlugin.loader,\n          'css-loader',\n          'postcss-loader',\n          'sass-loader',\n        ],\n      }\n    ]\n  }\n}\n```\n\n### Minimizing For Production\n\nWhile webpack 5 is likely to come with a CSS minimizer built-in, with webpack 4 you need to bring your own. To minify the output, use a plugin like [optimize-css-assets-webpack-plugin](https://github.com/NMFR/optimize-css-assets-webpack-plugin). Setting `optimization.minimizer` overrides the defaults provided by webpack, so make sure to also specify a JS minimizer:\n\n**webpack.config.js**\n\n```js\nconst UglifyJsPlugin = require(\"uglifyjs-webpack-plugin\");\nconst MiniCssExtractPlugin = require(\"@applaud/mini-css-extract-plugin\");\nconst OptimizeCSSAssetsPlugin = require(\"optimize-css-assets-webpack-plugin\");\nmodule.exports = {\n  optimization: {\n    minimizer: [\n      new UglifyJsPlugin({\n        cache: true,\n        parallel: true,\n        sourceMap: true // set to true if you want JS source maps\n      }),\n      new OptimizeCSSAssetsPlugin({})\n    ]\n  },\n  plugins: [\n    new MiniCssExtractPlugin({\n      filename: \"[name].css\",\n      chunkFilename: \"[id].css\"\n    })\n  ],\n  module: {\n    rules: [\n      {\n        test: /\\.css$/,\n        use: [\n          MiniCssExtractPlugin.loader,\n          \"css-loader\"\n        ]\n      }\n    ]\n  }\n}\n```\n\n### Features\n\n#### Using preloaded or inlined CSS\n\nThe runtime code detects already added CSS via `<link>` or `<style>` tag.\nThis can be useful when injecting CSS on server-side for Server-Side-Rendering.\nThe `href` of the `<link>` tag has to match the URL that will be used for loading the CSS chunk.\nThe `data-href` attribute can be used for `<link>` and `<style>` too.\nWhen inlining CSS `data-href` must be used.\n\n#### Extracting all CSS in a single file\n\nSimilar to what [extract-text-webpack-plugin](https://github.com/webpack-contrib/extract-text-webpack-plugin) does, the CSS\ncan be extracted in one CSS file using `optimization.splitChunks.cacheGroups`.\n\n**webpack.config.js**\n\n```js\nconst MiniCssExtractPlugin = require(\"@applaud/mini-css-extract-plugin\");\nmodule.exports = {\n  optimization: {\n    splitChunks: {\n      cacheGroups: {\n        styles: {\n          name: 'styles',\n          test: /\\.css$/,\n          chunks: 'all',\n          enforce: true\n        }\n      }\n    }\n  },\n  plugins: [\n    new MiniCssExtractPlugin({\n      filename: \"[name].css\",\n    })\n  ],\n  module: {\n    rules: [\n      {\n        test: /\\.css$/,\n        use: [\n          MiniCssExtractPlugin.loader,\n          \"css-loader\"\n        ]\n      }\n    ]\n  }\n}\n```\n\n#### Extracting CSS based on entry\n\nYou may also extract the CSS based on the webpack entry name. This is especially useful if you import routes dynamically\nbut want to keep your CSS bundled according to entry. This also prevents the CSS duplication issue one had with the\nExtractTextPlugin.\n\n```javascript\nconst path = require('path');\nconst MiniCssExtractPlugin = require(\"@applaud/mini-css-extract-plugin\");\n\nfunction recursiveIssuer(m) {\n  if (m.issuer) {\n    return recursiveIssuer(m.issuer);\n  } else if (m.name) {\n    return m.name;\n  } else {\n    return false;\n  }\n}\n\nmodule.exports = {\n  entry: {\n    foo: path.resolve(__dirname, 'src/foo'),\n    bar: path.resolve(__dirname, 'src/bar')\n  },\n  optimization: {\n    splitChunks: {\n      cacheGroups: {\n        fooStyles: {\n          name: 'foo',\n          test: (m,c,entry = 'foo') => m.constructor.name === 'CssModule' && recursiveIssuer(m) === entry,\n          chunks: 'all',\n          enforce: true\n        },\n        barStyles: {\n          name: 'bar',\n          test: (m,c,entry = 'bar') => m.constructor.name === 'CssModule' && recursiveIssuer(m) === entry,\n          chunks: 'all',\n          enforce: true\n        }\n      }\n    }\n  },\n  plugins: [\n    new MiniCssExtractPlugin({\n      filename: \"[name].css\",\n    })\n  ],\n  module: {\n    rules: [\n      {\n        test: /\\.css$/,\n        use: [\n          MiniCssExtractPlugin.loader,\n          \"css-loader\"\n        ]\n      }\n    ]\n  }\n}\n```\n\n#### Long Term Caching\n\nFor long term caching use `filename: \"[contenthash].css\"`. Optionally add `[name]`.\n\n### Media Query Plugin\n\nIf you'd like to extract the media queries from the extracted CSS (so mobile users don't need to load desktop or tablet specific CSS anymore) you should use one of the following plugins:\n\n- [Media Query Plugin](https://github.com/SassNinja/media-query-plugin)\n- [Media Query Splitting Plugin](https://github.com/mike-diamond/media-query-splitting-plugin)\n\n\n<h2 align=\"center\">Maintainers</h2>\n\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\">\n        <a href=\"https://github.com/sokra\">\n          <img width=\"150\" height=\"150\" src=\"https://github.com/sokra.png?size=150\">\n          </br>\n          Tobias Koppers\n        </a>\n      </td>\n    </tr>\n  <tbody>\n</table>\n\n\n## License\n\n#### [MIT](./LICENSE)\n\n[npm]: https://img.shields.io/npm/v/mini-css-extract-plugin.svg\n[npm-url]: https://npmjs.com/package/mini-css-extract-plugin\n\n[node]: https://img.shields.io/node/v/mini-css-extract-plugin.svg\n[node-url]: https://nodejs.org\n\n[deps]: https://david-dm.org/webpack-contrib/mini-css-extract-plugin.svg\n[deps-url]: https://david-dm.org/webpack-contrib/mini-css-extract-plugin\n\n[tests]: \thttps://img.shields.io/circleci/project/github/webpack-contrib/mini-css-extract-plugin.svg\n[tests-url]: https://circleci.com/gh/webpack-contrib/mini-css-extract-plugin\n\n[cover]: https://codecov.io/gh/webpack-contrib/mini-css-extract-plugin/branch/master/graph/badge.svg\n[cover-url]: https://codecov.io/gh/webpack-contrib/mini-css-extract-plugin\n\n[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg\n[chat-url]: https://gitter.im/webpack/webpack\n","readmeFilename":"README.md"}