{"_id":"next-purgecss","_rev":"18-d7309a26c15198a6f727930e98e68875","name":"next-purgecss","dist-tags":{"latest":"4.0.0","beta":"2.0.0-beta.1"},"versions":{"0.0.1":{"name":"next-purgecss","version":"0.0.1","main":"index.js","files":["index.js"],"author":{"name":"lucleray"},"license":"MIT","dependencies":{"glob-all":"^3.1.0","purgecss-webpack-plugin":"^0.22.0"},"description":"1.  Install `next-css` and `next-purgecss` :","_id":"next-purgecss@0.0.1","dist":{"shasum":"9143f6414579beda760673a2a5e7133060fc0cb1","tarball":"https://registry.npmjs.org/next-purgecss/-/next-purgecss-0.0.1.tgz","fileCount":4,"unpackedSize":2025,"integrity":"sha512-HRgMqG0FDLbe6cwUu8Oanuspbrez+w39rykNZ3X9Zl4YZQhLGrSE2+75c8bHS7qC5jIGj/eoiBslmJmXK1lshA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC21V4vMOvlDY0A01ky8uNwZ80S+RGjtoP341YEZ5b5kQIhAKuB9p5c27qhgISRQvkpn2E6TeqffWKzyIHgwspy5XTG"}]},"maintainers":[{"name":"lucleray","email":"luc.leray@gmail.com"}],"_npmUser":{"name":"lucleray","email":"luc.leray@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-purgecss_0.0.1_1522937041041_0.8896565784854515"},"_hasShrinkwrap":false},"1.0.0":{"name":"next-purgecss","version":"1.0.0","main":"index.js","files":["index.js"],"author":{"name":"lucleray"},"license":"MIT","dependencies":{"glob":"^7.1.2","purgecss-webpack-plugin":"^0.22.0"},"description":"Next.js + Purgecss = 🔥","_id":"next-purgecss@1.0.0","dist":{"shasum":"e1d9a125d156f94cdef1156c6050e02316f8f627","tarball":"https://registry.npmjs.org/next-purgecss/-/next-purgecss-1.0.0.tgz","fileCount":4,"unpackedSize":3529,"integrity":"sha512-t9lsXLfGqWzzuwNpyVfePLPyT/3gOaOcYwQkpVXfpOr4c+Q9MOLfx0xYamP2wHoFE+sMI39jBFzWPvtKmbt24A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZYzEw6P73s5t0fc1P3W4Ef/O5bX9hLydFU2v4AiOsugIgMH+w53Uk/Qr//0qsigYS7NsokxaycHe/vy4NVL+4NAI="}]},"maintainers":[{"name":"lucleray","email":"luc.leray@gmail.com"}],"_npmUser":{"name":"lucleray","email":"luc.leray@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-purgecss_1.0.0_1532518707616_0.4708774682347707"},"_hasShrinkwrap":false},"1.0.1":{"name":"next-purgecss","version":"1.0.1","keywords":["next-plugins","next","next.js","purgecss"],"description":"nextjs + purgecss for faster websites 🔥","main":"index.js","files":["index.js"],"author":{"name":"lucleray"},"homepage":"https://github.com/lucleray/next-purgecss#readme","bugs":{"url":"https://github.com/lucleray/next-purgecss/issues"},"repository":{"type":"git","url":"https://github.com/lucleray/next-purgecss.git"},"license":"MIT","dependencies":{"glob":"^7.1.2","purgecss-webpack-plugin":"^0.22.0"},"_id":"next-purgecss@1.0.1","dist":{"shasum":"057affe4b42922a09f1e1c8de0cab4e95676e3c2","tarball":"https://registry.npmjs.org/next-purgecss/-/next-purgecss-1.0.1.tgz","fileCount":4,"unpackedSize":3921,"integrity":"sha512-IhaxyORkC8RtD6hGc0XxIs8YXNLGk5li6wGXVvlrxAQN8pmMJm4eB767+U7NhwLzs0zNtWsUojk4CTB+OA9nhQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH9dw4OxSuBFg781CC4qhdq6kIxOs2UqvqXPx3A+ba3cAiADGEg42dPoikGq5ON2nRhha5Xx478y3NXM/Ha9kHTngw=="}]},"maintainers":[{"name":"lucleray","email":"luc.leray@gmail.com"}],"_npmUser":{"name":"lucleray","email":"luc.leray@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-purgecss_1.0.1_1532518935760_0.028550570721039392"},"_hasShrinkwrap":false},"1.0.2":{"name":"next-purgecss","version":"1.0.2","keywords":["next-plugins","next","next.js","purgecss"],"description":"nextjs + purgecss for faster websites 🔥","main":"index.js","files":["index.js"],"author":{"name":"lucleray"},"homepage":"https://github.com/lucleray/next-purgecss#readme","bugs":{"url":"https://github.com/lucleray/next-purgecss/issues"},"repository":{"type":"git","url":"https://github.com/lucleray/next-purgecss.git"},"license":"MIT","dependencies":{"glob":"^7.1.2","purgecss-webpack-plugin":"^0.22.0"},"_id":"next-purgecss@1.0.2","dist":{"shasum":"864a43ede4074a7641fd6b7b2f57df7e05be9836","tarball":"https://registry.npmjs.org/next-purgecss/-/next-purgecss-1.0.2.tgz","integrity":"sha512-dBfoVRGVL6VTaHQY5ti5U7brtcv2ZGEN3cFMqb7uZTTWzr+dVn+F0K+9/d12XZQaZciL0PaK5BufO/IB0eFAyw==","fileCount":4,"unpackedSize":3917,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbdUCfCRA9TVsSAnZWagAAI7oP/0XQoozVOATNQZm5Mfqd\ntJ4jOWX88QXX9bf2+Nz7rNJNhIbeHlII7vcHDTxjMnC1R8+GYW0n9Ef/1nvP\nN/SIvlELDywmrw9qoVe5Wi8qirGqEGIU+b+hk+L85ree+16FRGW9mxkZZORi\nPqZUwWyP0xf8zWZdMbln+V4Dgy5YMwFKAowVvRQYtW+61oNF+xpLxJsrpl8H\n3LNEOnodvZS4DXjdCZFxXQm8vA3nbSk0KmRkiRso7Rufme0iDWSuYWVKR83N\nfUNiq4LhPbh+SekJNhC72NIuNQAaWAUolFUE7oI83/jP2P5wiu/KIEtUPq93\nNlzrwAxGUgoa+6Pmeo0+Om1wnSjGmlk6yY62216w3wiTCV7JIof8pgcl9jgN\nqlo5Hbo8ELSwiNnj9zZZT4XXv5RMpRaRHlppcI8PXc41qzhuxmK3t30tc2x0\nmL4Oc0+9V6EzU7B7rknDstbxlyzMHQcxfw8VtcgSQafWqgOvOceQaNyiqtRz\ng7zrlJwPo7I4DyEjraICd6ofctLqYxGnCK4+oOLdnKHG3gZjJ8bf5ynYzJJI\na/jj/mMM5sgyOe/QqlTSdPUbkmxGGsQNMqP0+zNo5MtnWPAZiH8+nUwpdK90\n7UfVwecqfd6QFPzWsvVVTQbLBF15mAjdKuZAanyyV3mfySaUzRnJsQmNXUiZ\nK31X\r\n=VSdo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/Q5u31ov4p66gu53huAb3PYI7puKyeY668WJ3mZn6SwIhAPLI5cOoUIeMNrxe+zHwF/z3LjCw7GGsahzXsolz7DR4"}]},"maintainers":[{"name":"lucleray","email":"luc.leray@gmail.com"}],"_npmUser":{"name":"lucleray","email":"luc.leray@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-purgecss_1.0.2_1534410910769_0.4921888920302837"},"_hasShrinkwrap":false},"1.0.3":{"name":"next-purgecss","version":"1.0.3","keywords":["next-plugins","next","next.js","purgecss"],"description":"nextjs + purgecss for faster websites 🔥","main":"index.js","author":{"name":"lucleray"},"homepage":"https://github.com/lucleray/next-purgecss#readme","bugs":{"url":"https://github.com/lucleray/next-purgecss/issues"},"repository":{"type":"git","url":"https://github.com/lucleray/next-purgecss.git"},"license":"MIT","dependencies":{"glob":"^7.1.2","purgecss-webpack-plugin":"^0.22.0"},"_id":"next-purgecss@1.0.3","dist":{"shasum":"953c251babd378fa843ae92491dbc1108e149a79","tarball":"https://registry.npmjs.org/next-purgecss/-/next-purgecss-1.0.3.tgz","integrity":"sha512-dnjYwkqAT+ugspnXAHMeL/vDtCEkbgOUX4WKf/1KiijWsYZLIu0+z33Xx5Qy1vkOoO0nbrkDxrp2yZmd4SQGRw==","fileCount":4,"unpackedSize":3178,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbqMChCRA9TVsSAnZWagAA3KsP/2OaxdBWOPReCZRqteA2\nhPeYVzxL8/xX+mlpUXmYHMaL+sdKtxzMc4cjy8LR6cGFWNQvnrWjyUn6b2MI\nXjDvK1UYewPWBBgML3247ZjER16oiPv09WwFRtuULMwSPvfSXIa+0roFQ0Ae\nq/oe0yzpvc1BwwJ2WfklqRo7r0GB4L9wWzc3wuRfvciehUslVrM4nu72p52E\n5II5uo/4IMWDFEqNmil5hnaGf6GdM5LFyrI7ZUb3p3elNNppehHE9eQxyRGa\nQ2eJVSku5fZY7LTjzqW7xk1t9OIo0oX/yja5z75k3KQPpwMiiCLGHdrqLQJi\n6nt97z3xuPKiEkVG6I7u3mqpUvnbUbUdEbBTcRVzftF3dKFCjJOiz9HEfQDt\nDBHkaCaOe9qYrDNXHYTbaKx5VlOVvV98UqMRlqsrtHJW2B+NHn+21YR7ldoq\nuT92QPqv5ks77KwycKj6FL2JZqzwhmv/FDOOWI0+Ief6N/AVwtJ0iaR2j+eA\n1hLEYHKlPnHX5g2ON0tAeZMbeBfufNamxHv+XfsU4uHkEGY0Rr8axliJebn0\nup5gSWGGV0qUoj0a0JCh3KE2G6AQoL+HRvX6OsKq1+f9T/sNERoiL7W9zwPf\ngVcvjzbcI0TMrUKR7+Q74VUNrE8NnVzqTezxNGj2KW2Nu6P9D9dMEEu+8sb0\nd1i7\r\n=UkgU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLZRXdJC6KpH1lOAXeumYjZLU45JjUvWvJHqMhZCoUqgIgF7/8IZQqprTjBB3QfT5hi7rYraG+03TYGvzLHX8juL0="}]},"maintainers":[{"name":"lucleray","email":"luc.leray@gmail.com"}],"_npmUser":{"name":"lucleray","email":"luc.leray@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-purgecss_1.0.3_1537786016507_0.48974956945366466"},"_hasShrinkwrap":false},"1.0.4":{"name":"next-purgecss","version":"1.0.4","keywords":["next-plugins","next","next.js","purgecss"],"description":"nextjs + purgecss for faster websites 🔥","main":"index.js","author":{"name":"lucleray"},"homepage":"https://github.com/lucleray/next-purgecss#readme","bugs":{"url":"https://github.com/lucleray/next-purgecss/issues"},"repository":{"type":"git","url":"https://github.com/lucleray/next-purgecss.git"},"license":"MIT","dependencies":{"glob":"^7.1.2","purgecss-webpack-plugin":"^0.22.0"},"_id":"next-purgecss@1.0.4","dist":{"shasum":"b17b54a4d98e52a91d46613f15653f67e04f259f","tarball":"https://registry.npmjs.org/next-purgecss/-/next-purgecss-1.0.4.tgz","integrity":"sha512-NpbPAeqHFV5RKPnukK/waSdrDpP/w5qWx+AKdqrNNiEb2r6UHpOk1jN4u8yVBOKGdwPeeZGOGBomjamWjaDTiw==","fileCount":18,"unpackedSize":13375,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb4BQUCRA9TVsSAnZWagAAbeoP/2wPG7DySCNa3J7Oe010\nbvuHIyVxxbV23Xpgp8Ay60zvUBZczx/sqHTnzetpLMv+ScPY1dsKQpcGLE4N\nwJysjO5ob5Sg+3kIzyJS71ZLqV5fLUG640phxDua/AOxf7pi6gck/qcbPdil\nm6luYdCxZ6VrskJWf/mMWN50SQJKKV/Hr6q7RvsPjRQdm97tpOa5esnIiZtm\nr6TMCp2DdEq4EsEWD1sWQBp2NlvxdNxV4dZ61d0LIDtlxKaQDSEWo4hArbGZ\n6rcF8rMXWxxx5E8eOjmjWdUJrEsi5JanSed8jcHMldwQ5dsIC/6TFOK4wm1U\ngJnm/K9R0Pf+0sAbHV4YcfvWejTKH6DjD9pQjvE92BNfu0bVAuoSXMxDbB7B\ntMkhQT8MjqV4AfK+/ZaXix4Xh3CLGR1u2WbVl6njz3hd1tY935cptJze8kyc\n2PbVXQPhD+rQksa+H8NQE5xY2/Lp/2cyGYjWHn4eOnTVoqgMTpCgpG4s+WYO\n6pPZNrE7bw8OtZYdsafOwPHRlECUUw5gKdq3rBWNhbNBBVK/Q2LvQHawEJpQ\nVSRPYfLSJp4p6FYHNkClLrzXQpIACFCSXCh3lvVjn6YdMaIRN7+ZL9DIkcj8\nPYEumzWMcgsp1xcme1tJFZpLmMrctdxf3rJwAiqTQ8Uq6HTSm9E8UHfzxsxh\nh5gu\r\n=FnhV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFqz6BrRNv5CX3OqPuqxieLaauOwE8YQvKbOoe4jmbGlAiAQDTt8rBQIRAuJKnoDUO4DU7Lrgfpfm/+lPkopYmdosQ=="}]},"maintainers":[{"name":"lucleray","email":"luc.leray@gmail.com"}],"_npmUser":{"name":"lucleray","email":"luc.leray@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-purgecss_1.0.4_1541411859390_0.9899722603583347"},"_hasShrinkwrap":false},"2.0.0-beta.0":{"name":"next-purgecss","version":"2.0.0-beta.0","keywords":["next-plugins","next","next.js","purgecss"],"description":"nextjs + purgecss for faster websites 🔥","main":"index.js","author":{"name":"lucleray"},"homepage":"https://github.com/lucleray/next-purgecss#readme","bugs":{"url":"https://github.com/lucleray/next-purgecss/issues"},"repository":{"type":"git","url":"https://github.com/lucleray/next-purgecss.git"},"license":"MIT","dependencies":{"glob-all":"^3.1.0","purgecss-webpack-plugin":"^0.22.0"},"readmeFilename":"readme.md","readme":"# next-purgecss\n\nNext.js + Purgecss = 🔥\n\n[Next.js](https://nextjs.org/) makes it easy to create SSR and static React applications.\n\n[Purgecss](https://www.purgecss.com/) helps you remove unused CSS.\n\n## Installation\n\n> 🏎 Check out the [**examples folder**](examples) to see examples for your specific setup.\n\n### 1. Install the packages\n\n`next-purgecss` requires one of the following **css next plugins** :\n\n- [next-css](https://github.com/zeit/next-plugins/tree/master/packages/next-css)\n- [next-less](https://github.com/zeit/next-plugins/tree/master/packages/next-less)\n- [next-sass](https://github.com/zeit/next-plugins/tree/master/packages/next-sass)\n\nJust pick the one that fits your needs. In the following steps, I will use `next-css` but it works the same for the other **css next plugins**.\n\nFor example, install `next-css` and `next-purgecss` :\n\n```\nyarn add @zeit/next-css next-purgecss --dev\n```\n\nor with npm :\n\n```\nnpm install @zeit/next-css next-purgecss --save-dev\n```\n\n### 2. Edit `next.config.js`.\n\n```js\n// next.config.js\nconst withCss = require('@zeit/next-css')\nconst withPurgeCss = require('next-purgecss')\n\nmodule.exports = withCss(withPurgeCss())\n```\n\n## Options\n\n### `purgeCssPaths`\n\nBy default, this plugin will scan `components` and `pages`\ndirectories for classnames. You can change that by defining `purgeCssPaths`.\n\n```js\n// next.config.js\nmodule.exports = withCss(\n  withPurgeCss({\n    purgeCssPaths: [\n      'pages/**/*',\n      'components/**/*',\n      'other-components/**/*' // also scan other-components folder\n    ]\n  })\n)\n```\n\n### `purgeCss`\n\nYou can pass custom options to\n[Purgecss](https://github.com/FullHuman/purgecss-webpack-plugin) by defining\n`purgeCss` object in your `next.config.js`.\n\n```js\n// next.config.js\nmodule.exports = withCss(\n  withPurgeCss({\n    purgeCss: {\n      whitelist: () => ['my-custom-class']\n    }\n  })\n)\n```\n\nThe list of available options are documented in [`purgecss-webpack-plugin`\ndocs](https://github.com/FullHuman/purgecss-webpack-plugin#options).\n\n> ⚠️ `purgeCss.paths` will overwrite `purgeCssPaths`\n","_id":"next-purgecss@2.0.0-beta.0","dist":{"shasum":"6276b155d9be910e8cd00eb4f4157703cf1f57a4","tarball":"https://registry.npmjs.org/next-purgecss/-/next-purgecss-2.0.0-beta.0.tgz","integrity":"sha512-HLdOegr02nUPQI8hGprGob8SYy5dLn5RZNtXyAdLrYp5U5sKBtqZDFpT5GGcoECdurXtZpKXzH7P7fF9+K4MlQ==","fileCount":34,"unpackedSize":23835,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb4HEPCRA9TVsSAnZWagAAf70QAJJTVkA/UaWz9YgRJQrp\nuIaPmXRcpnkZb7rMJlE9Dn/N91myA93HxLNstdTijEFzzO+J9z2vYr7KLrS/\nQ9/rBDgTFcu6LJLPX0wdK3mUgeYYZwsNFCE5aIhiACkZpUI1gU0YmgRvq9CP\nxGQJD+5YWC8y+gtY/mxokomOdk5VawZOyOm2Lz35eS1y4jI4W40LNI8XrvOx\nSMeIef0PLeL7nvMkoBibX/q//TlxA9ywx8JG9Rn+mbNQn0OPN6mV8Yoqt6CO\nj0GaCxPDVNU8TsdQdVS8YGdvoLp9XbLhmTO62kSrANNyLrlL9l0WhlaEp92I\n9PKHi1cVGabwWDq9cZznNShMnElRnAnFOyqPLnMskEBrj2eGQHYP6DHquINW\ngsIYuOvMzHZ3xNsDPJUDkVRS1B2+LduoHZlLuAUaxDha+T9dew2oxT4wSjPF\nuy37H8IkVyGnSu7SV/A8SfJUPnSz3VHWU3X1wAskJoCILioWGLZtjPtLDZdz\ntMab4uTY+ZU4OAZdmWnIzqYjMoSkdmeUXUfeNj/0IjXsBoL1ryfkW2LVEMIf\nflM3Rh/pfrkKKhCFscU6U1SXIWBRWUTg1aBCqq+uARDMrUSfteJkvtoELclV\neIGI9PKstK7RydUMgXpymRWqIAd5gYj2g6M+/UOI30100t76GPL9gEbNHi1R\nYywV\r\n=F7ao\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGbV2wY6P6+E1PYHGFnj6Ah2Tgirgwtjxy66PbcpETWYAiBeLmXJU6G0SmSbmH2bo2bqw5MPYstfCqCc5Q405LMTvw=="}]},"maintainers":[{"name":"lucleray","email":"luc.leray@gmail.com"}],"_npmUser":{"name":"lucleray","email":"luc.leray@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-purgecss_2.0.0-beta.0_1541435662339_0.00961669039910995"},"_hasShrinkwrap":false},"2.0.0-beta.1":{"name":"next-purgecss","version":"2.0.0-beta.1","keywords":["next-plugins","next","next.js","purgecss"],"description":"nextjs + purgecss for faster websites 🔥","main":"index.js","author":{"name":"lucleray"},"homepage":"https://github.com/lucleray/next-purgecss#readme","bugs":{"url":"https://github.com/lucleray/next-purgecss/issues"},"repository":{"type":"git","url":"https://github.com/lucleray/next-purgecss.git"},"license":"MIT","dependencies":{"glob-all":"^3.1.0","purgecss-webpack-plugin":"^0.22.0"},"readmeFilename":"readme.md","readme":"# next-purgecss\n\nNext.js + Purgecss = 🔥\n\n[Next.js](https://nextjs.org/) makes it easy to create SSR and static React applications.\n\n[Purgecss](https://www.purgecss.com/) helps you remove unused CSS.\n\n## Installation\n\n> 🏎 Check out the [**examples folder**](examples) to see examples for your specific setup.\n\n### 1. Install the packages\n\n`next-purgecss` requires one of the following **css next plugins** :\n\n- [next-css](https://github.com/zeit/next-plugins/tree/master/packages/next-css)\n- [next-less](https://github.com/zeit/next-plugins/tree/master/packages/next-less)\n- [next-sass](https://github.com/zeit/next-plugins/tree/master/packages/next-sass)\n\nJust pick the one that fits your needs. In the following steps, I will use `next-css` but it works the same for the other **css next plugins**.\n\nFor example, install `next-css` and `next-purgecss` :\n\n```\nyarn add @zeit/next-css next-purgecss --dev\n```\n\nor with npm :\n\n```\nnpm install @zeit/next-css next-purgecss --save-dev\n```\n\n### 2. Edit `next.config.js`.\n\n```js\n// next.config.js\nconst withCss = require('@zeit/next-css')\nconst withPurgeCss = require('next-purgecss')\n\nmodule.exports = withCss(withPurgeCss())\n```\n\n## Options\n\n### `purgeCssPaths`\n\nBy default, this plugin will scan `components` and `pages`\ndirectories for classnames. You can change that by defining `purgeCssPaths`.\n\n```js\n// next.config.js\nmodule.exports = withCss(\n  withPurgeCss({\n    purgeCssPaths: [\n      'pages/**/*',\n      'components/**/*',\n      'other-components/**/*' // also scan other-components folder\n    ]\n  })\n)\n```\n\n### `purgeCss`\n\nYou can pass custom options to\n[Purgecss](https://github.com/FullHuman/purgecss-webpack-plugin) by defining\n`purgeCss` object in your `next.config.js`.\n\n```js\n// next.config.js\nmodule.exports = withCss(\n  withPurgeCss({\n    purgeCss: {\n      whitelist: () => ['my-custom-class']\n    }\n  })\n)\n```\n\nThe list of available options are documented in [`purgecss-webpack-plugin`\ndocs](https://github.com/FullHuman/purgecss-webpack-plugin#options).\n\n> ⚠️ `purgeCss.paths` will overwrite `purgeCssPaths`\n","_id":"next-purgecss@2.0.0-beta.1","dist":{"shasum":"d3e297e76067338e4a8485427801c34fc98474ff","tarball":"https://registry.npmjs.org/next-purgecss/-/next-purgecss-2.0.0-beta.1.tgz","integrity":"sha512-h9ASpTnqvgeAG7vuS5yv4sFcVvZUZr/RRddn7RmXHDNNgyo3yscnWR3GsR7GoPDMQ9C5VSHNWYiJhvT8IdzgNw==","fileCount":34,"unpackedSize":23882,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb4HLjCRA9TVsSAnZWagAA2ZsQAJEv0i0fbGWtOZT4Lfx1\no3kWvntbfE2c0Ny1M+zhqMc5YqGJ+x8UfY9XgJD/WIqg9Akr3vF8p+i1JDo8\nv6FEpu6g/NsuLt+oOKqGEzN5LjwD2PH7pBmYywYanN5GI/ao7sRi75QIZyfI\nxV6kZxCCEAv0J3seo91rHpQmupsQ8whskU5kHq9BE1URPJarEO3bR8IZO6l4\njW5hwfVjpng09Mu/+5r5QrcuJ9JwEE54yPAIqgn600jn+Ru1opkVjraBf4A3\nvmlJXuGp7EpKDsBOKIAg1Cd0aJaMPsilb9wH/GJntkq9Ny68GHD1YBWdHg5k\nfsjAYIc7kNFPG5+CBnh8gjqEUOacPbIoKf2TW69rjedGZ3btN7S4zBfrQRBW\nzAFWFLzVTbRl2jm1E4eFJNavr0KDtH6T+0ZQV8Ym7EtXbruC6PJsHSCajDC1\nkR95ixd/WRor8n55vsTyTJA61Mt2OQETR//6KB8jtWwEN2CLohUT1GbNFG+V\nZvmpTkOZn7jQA40a3ZwkULHItNaRlS9izPeqjmxMxDXFAHm70stIzgb9zH/j\n8EIrvtnzTTCVJM6YkRoVIQl9RyFYircWhZK5TVgjdO/OjXi9f8GJoevlHvbZ\nc/VS0tdZ5e4hblNXw/mPhEvi5hsTdUL3G7d5ZoVVcox0vMV7K/9eaQQCHk8k\nVOB9\r\n=f4bu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGFgrOmkrl0lqcG/qSUt6WmZtfhgoGjyAU0+xIv6u3IOAiEAiv73NXRFkZbhqvUzMKGp1X8mykB90SJa6i3uHvmhqJ0="}]},"maintainers":[{"name":"lucleray","email":"luc.leray@gmail.com"}],"_npmUser":{"name":"lucleray","email":"luc.leray@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-purgecss_2.0.0-beta.1_1541436130536_0.6480026217902697"},"_hasShrinkwrap":false},"2.0.0":{"name":"next-purgecss","version":"2.0.0","keywords":["next-plugins","next","next.js","purgecss"],"description":"nextjs + purgecss for faster websites 🔥","main":"index.js","author":{"name":"lucleray"},"homepage":"https://github.com/lucleray/next-purgecss#readme","bugs":{"url":"https://github.com/lucleray/next-purgecss/issues"},"repository":{"type":"git","url":"https://github.com/lucleray/next-purgecss.git"},"license":"MIT","dependencies":{"glob-all":"^3.1.0","purgecss-webpack-plugin":"^0.22.0"},"_id":"next-purgecss@2.0.0","dist":{"shasum":"392b393a1b777cb117643fa3a1af3dd03b04921d","tarball":"https://registry.npmjs.org/next-purgecss/-/next-purgecss-2.0.0.tgz","integrity":"sha512-x8CDeIQIMO37dBDDtbiMrfr9pp+gj8nHeA9ESh+UrBfI969ZrNfTOQOug9ENSXEg1SI5KoMy0scY03+p28PWew==","fileCount":47,"unpackedSize":37380,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb4HbxCRA9TVsSAnZWagAAvmEP+QDIEKfrSVAgqXT3GjWD\nvZ66VjrxpdSOjquWWl1TGcTAUTESLGPCpnqKHSfz4sv1nbX1T3ehnMJoLjYE\nhKhG/bi8Kvc7k5lp70bSSSV2/N1qG6bo5t/aZHiyX79FpXMmBg/0/WcCqRVy\n9Ml8ZOQeJGKyUW+lO8Sc/y2NU/PYdPFjOxycSlaIVUVnSSAG2HQzVBJ9GOUT\nOhE3CLrsdr0AqiBj4HdSdc7Ft7JfS0Z8GvxT4cjXMg4aeLXwdgEKAkvHHgFZ\niCDaMzzQOqu+nrXnKz6Mke1ZSDWAPbmGaTsp/FNABwUG6mqY+xoxTw69xURj\nKikvyyEqg42R0nHUH2qya9d5DPNOYfuIRKRpw2lzPefUOLuWk6obj76zDFq4\nOaszGSR6kvy30Sx8Z0t183tCm//rrTZ9CrcbwfJF33jxTSqTdfAdFYo8cSR0\nXwMYvqgP41D7H4tbn15aCDdyM5inlq5VIXChrwbJ6NpF33A/sBBm4DQFYz8i\nOoxOA9JJYf+nPfWP4ncyhkhPcNZA6aUVX2e8ZRAUH2UNhLvA+mAD74dFdvMt\nxGOfpRjiwvOfJH/w61JXT1na4GQO1atrox5YBQdQfCIMmCxFZjzPefK1ED2Q\nbePdziUn3uN+cy4NJVl0wGoml0d6TZ7JN+bXm9NTCu8qpwdueyqIGdaKnra+\nNKU9\r\n=j+N7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMUhLJ6MU9gFMyVl4PW8xP1rrDA1mh/rC3LgR36F+OMAIhAMqv+5MDrbA/k2Id1TF33lMWDETPXy4gwjIs924Ej6cF"}]},"maintainers":[{"name":"lucleray","email":"luc.leray@gmail.com"}],"_npmUser":{"name":"lucleray","email":"luc.leray@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-purgecss_2.0.0_1541437168593_0.2329704099358232"},"_hasShrinkwrap":false},"3.0.0":{"name":"next-purgecss","version":"3.0.0","keywords":["next-plugins","next","next.js","purgecss"],"description":"nextjs + purgecss for faster websites 🔥","main":"index.js","author":{"name":"lucleray"},"homepage":"https://github.com/lucleray/next-purgecss#readme","bugs":{"url":"https://github.com/lucleray/next-purgecss/issues"},"repository":{"type":"git","url":"https://github.com/lucleray/next-purgecss.git"},"license":"MIT","dependencies":{"glob-all":"^3.1.0","purgecss-webpack-plugin":"^1.3.1"},"_id":"next-purgecss@3.0.0","dist":{"shasum":"62891a9507140dff8323ff5d00a31123cf84c520","tarball":"https://registry.npmjs.org/next-purgecss/-/next-purgecss-3.0.0.tgz","integrity":"sha512-Degp/1YaweBv1mncFroNIPMfNQvTR5FnCW+lMbvlQFQd5x2hfqRb+EallckJUQ87jbb8JAbartkt+SxYa6OMoA==","fileCount":47,"unpackedSize":37379,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb7oaMCRA9TVsSAnZWagAAtGAP+wUkuLMBZqpgMpZ4PvIm\nCtJpUQ8kEoN7suEE2kEr7VhVYd++AexVGOnsNKOcE35xpiBs3eV22rOSf453\nypbu1Yr/mwnBlSYUWgTsIoHNIid3Ss0uLvDfakiMyFblOIzIbMtW9Wac8cLe\n8y7AIBnh16Mrju7IhGD/YYQtP0hE6HmCTNAclhEq1BIWkvuuo/cGriQlQ5Uu\neZapCnSOjBi2dPGNG3gScgmRf+R1ehrvab+TkoOH1d0QKetqIzB0dRfnYPz6\nffdWjpNFFM2ESI+aVK7SmZrkxAIqFj4gGfTaI2eYWl7DDN5sQmrQP5lcoc2s\nDKAXBVIQ/Ijr6GWPY1+H7+e5//0a0iVGF7OvKaCltWt8oMpq1nXTQtyoy+mQ\nLyRI7Ze1t+wg8WMguFg9/ShuHpfpJ0kuAIFuNWdc14qyDM1jL1utuMDG3Qc5\nkvDW5TdWGLLhNLNpPi0ZXtizTeaq8f6HGCgVouT8pdg3zZMRZdYOGYSgcWrq\nq9Dx/JHs+HI3zMToIuxLJb8Nbhmh3PLAxUTE0BziFbRL9bMgatbVL/xE7kB3\nl6RQQy9FDIdKP0sKYQcv9hrOXwOmRCFnZn6MlpyrOJXf4eHkaEfz9/m5+GS5\nDDzBPotnynh9ospiWu2pIfQB1zD1el/TC1HJMDgwrJQRYnmFHEYrNETnWtIX\n6B7Z\r\n=ZYwM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCHxqCz0hyL4KC4As5ip41sEB3SY1VMJ6XvTnlKBn0+LsCIQD4rPRraAGJLxv1xzgYYX4wYuEcRJh9QwGYKYMSPwvpNw=="}]},"maintainers":[{"name":"lucleray","email":"luc.leray@gmail.com"}],"_npmUser":{"name":"lucleray","email":"luc.leray@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-purgecss_3.0.0_1542358668077_0.6973919184498332"},"_hasShrinkwrap":false},"3.0.1":{"name":"next-purgecss","version":"3.0.1","keywords":["next-plugins","next","next.js","purgecss"],"description":"nextjs + purgecss for faster websites 🔥","main":"index.js","author":{"name":"lucleray"},"homepage":"https://github.com/lucleray/next-purgecss#readme","bugs":{"url":"https://github.com/lucleray/next-purgecss/issues"},"repository":{"type":"git","url":"https://github.com/lucleray/next-purgecss.git"},"license":"MIT","dependencies":{"glob-all":"^3.1.0","purgecss-webpack-plugin":"^1.3.1"},"_id":"next-purgecss@3.0.1","dist":{"shasum":"4abd79e7a1d3c3dda988856bb40eb260339f4f7b","integrity":"sha512-nnhaMwYfEGXFQYnE1kc8HTUAhjEgQuxqpH6himST923DEzOwzJQ0l7bTUJZevjFi4ds1t3DziXWPosxYCpzgKQ==","tarball":"https://registry.npmjs.org/next-purgecss/-/next-purgecss-3.0.1.tgz","fileCount":4,"unpackedSize":3482,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcbWLsCRA9TVsSAnZWagAAMCwP/0X0ik0M7Att5U368Eyd\nPDKGGeJEO3C3Th3UhxEq/MqEklSO2lVrxWBEYuGiYM2KIeBeo4n4i1trKpw1\nxNzn/fO6XoFDSiJTZn1eGZk6CuvHDbYP2tCM0XIHfUwI1rNPRNz2VoqhCNQL\ncm/GnDjDKB6hsfCBxt0JKiL8vygxV5Q330z6O/TbRl/nj/IIY9Is3n+QTRrR\ni0YibumxJg/+hzGofnPMCoC39yGltohSRKy702S6qRT1AdKoQX3yaHzVOeCg\nhrnbeW1RQGGmIiqv9BnzlCTcIvSMeyJwP6wZy7UpPh5la3SjqxNAbUgSl2vB\nKBw93nYQKtvoRvTyBDD9WPoXuNZLUpDv+WbxiE5gqVB8HRlevYNQuMXwBBvR\nhZDdnqiMKZG5kSYaBa+JRBqTkOwuyO1jVNzOAlzwtP840/3X2eIDmNnR8ZFK\ngY5bsOq6CkR/YmlTNHlB1SEPzXnUuUZdz+92y2pZanljgAYQTQlO+5i89yU9\nQxzTQf/s4rf9zCbR3llqmiCag06nf09DtQ+KIzd/l8ms6jf3ASyeuv8wcobc\nYAEm5pkmUpezXmrQgyhA596/eDBHuLIovUI/JmmsnThhzfnHt0lvqF51+n7t\nK7emIO6eaiActQle13C30XsekGT43if/5kwxwe5drpc2BldDG1taNVLb1Af8\n7scz\r\n=cNp+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjXTXWF2pq3tsd1Z4isF2EAEuU6Jp6iqXWGG4NcWI28AIhANm3RSXopadRU/t5SES7fSjsR1wUY4eHnWJuKwikZBr6"}]},"maintainers":[{"name":"lucleray","email":"luc.leray@gmail.com"}],"_npmUser":{"name":"lucleray","email":"luc.leray@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-purgecss_3.0.1_1550672619402_0.2933289936905732"},"_hasShrinkwrap":false},"3.1.0":{"name":"next-purgecss","version":"3.1.0","keywords":["next-plugins","next","next.js","purgecss"],"description":"nextjs + purgecss for faster websites 🔥","main":"index.js","author":{"name":"lucleray"},"homepage":"https://github.com/lucleray/next-purgecss#readme","bugs":{"url":"https://github.com/lucleray/next-purgecss/issues"},"repository":{"type":"git","url":"git+https://github.com/lucleray/next-purgecss.git"},"license":"MIT","dependencies":{"glob-all":"^3.1.0","purgecss-webpack-plugin":"^1.3.1"},"gitHead":"d154e27f1c456d392595d9d2bb172b990904e5e3","_id":"next-purgecss@3.1.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-YqgSiL9StWL+w/sOoFVdCtZUkdoEEt+obI3irZMVshsxkJZ9Mff8Wv8wCnTOEFFCINZiEAUeI59RydsQ18/07A==","shasum":"9c3d8d178e845a9b84f111ed997c29bdcb038d25","tarball":"https://registry.npmjs.org/next-purgecss/-/next-purgecss-3.1.0.tgz","fileCount":3,"unpackedSize":4392,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdEoWwCRA9TVsSAnZWagAAjbQP/1lMd0uvzLcoMiDDVici\nNkoqy9G2muDh1q9BhkHrIe/EHpEundQI/78uQidSI+C6dfr4olcVkejTOI5N\nWsAYnv6w+sD9btx9UhG7Cft+BWNQjDe2eEAwsRDlpqFkpzmsqPNR4OQdhGnq\nZ1Lnd5U5sRuvbY9Ye7Z2bXXCGRWEoVZLUK9BRIcRM9LV2LN3xGPW9HneCUJQ\n3npCl6eTzzcZGFNe4xt/EKcs5ch08UaYAhxkvQgEkgPMv/TUiNYynF5gR1KZ\ndONO1vkun8Wp4zsufVqyx+EET2ZAYkhJUzHVy6tP0aGrC1blNOtuKx+ETbMs\n/wnpKUEmF5wl3WdPuPKDnvqjBltppfYvZe35apsWkmlIZ6rAo7Tl8nOcK/0/\nAUzemMKehHkkE3Hudk2gt0YVRh8FF09UJOg/UT8YTPfpjTfn0YkcFFCNeGsm\nKOFOJPD5mwO98GiDYgC9KmZrwQkWJfuBQpdjRyDo1RzIY3Be5roZLnw3SYfi\nB4ObDWdxfxt+/gnWPcukWoyq5Y1Io/6ocOC4K354QrwHKGada9C/xmT20WCg\n6/VfqV+ngB1i2Q8pGDXtDRwevamHYFKoJNnY1cjbvCxrc1dK4g+PnexrQ37k\nmxC3Z+OYrWzKR1vgma0ca5wtab54oXukZpNUHmWc14o3ODF7uZi9gX2HIXid\nOTGt\r\n=rrtg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEBQKtZmh2Jc4vzIX2nrHaTWAbElFZSeIVOhV5A2GMYJAiEA6zPc3dXhRc3MLOt0VTq8gBNH59gGMOOB03f1CtMd1HI="}]},"maintainers":[{"name":"lucleray","email":"luc.leray@gmail.com"}],"_npmUser":{"name":"lucleray","email":"luc.leray@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-purgecss_3.1.0_1561494959421_0.24003935412964084"},"_hasShrinkwrap":false},"3.1.1":{"name":"next-purgecss","version":"3.1.1","keywords":["next-plugins","next","next.js","purgecss"],"description":"nextjs + purgecss for faster websites 🔥","main":"index.js","author":{"name":"lucleray"},"homepage":"https://github.com/lucleray/next-purgecss#readme","bugs":{"url":"https://github.com/lucleray/next-purgecss/issues"},"repository":{"type":"git","url":"https://github.com/lucleray/next-purgecss.git"},"license":"MIT","dependencies":{"glob-all":"^3.1.0","purgecss-webpack-plugin":"^1.3.1"},"devDependencies":{"babel-eslint":"^10.0.2","eslint":"^6.0.1","eslint-config-prettier":"^6.0.0","husky":"^2.5.0","lint-staged":"^8.2.1","prettier":"^1.18.2"},"scripts":{"lint":"eslint '**/*.js'"},"eslintConfig":{"parser":"babel-eslint","env":{"node":true,"es6":true,"browser":true},"extends":["eslint:recommended","prettier"]},"eslintIgnore":["examples"],"prettier":{"semi":false,"singleQuote":true},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["prettier --write","eslint","git add"]},"_id":"next-purgecss@3.1.1","dist":{"shasum":"d78dbcb0024186d2cf1707bb1d9b8118c4f09409","integrity":"sha512-kBdzMmJvI9+u5I4+bd7CZDgjOP7dBtoeqF7SXEXgSk4ZJXqQ3L0Me17Wc3x5ZVgGVgBYwdOAQCLHo+eMc4GUbw==","tarball":"https://registry.npmjs.org/next-purgecss/-/next-purgecss-3.1.1.tgz","fileCount":4,"unpackedSize":5155,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdEzrBCRA9TVsSAnZWagAAM/IP+wdsmrvrXHGq4bvTJcHT\nGYaiU27cPpc+7A5zKrA0H95PTwOBW3XKPfQskAlMd2BzxNFl+iXEPvwKkmT2\nMPaS14XrzT0cTsNhpxYgH5enY91VMnUGC1NdyaYBUfpHvqMTkbE0HzEWdduf\n+NvOqBnK3fFQI1nYUdiktDT00q/A6h3RVys5zRjMlhBGKyNFThee8CTSIVEv\nHGhI1J/Gvm8mG+shcYleqKEek3pRTw5dpHE1b5QSgcNG2Jepm8yCqBgzzC8c\nC6ch1GDbR80ykAN9YR5SWCL4JMf3+HT14DA220EAyNZWzI8oQl5+KRC2saaM\nDY34R0tFsmHzkBQNpqmteD3qGlgzRWxVRucp8ECuB5MtlcBxOgBybCsCvy4N\nuRJSaullA0YZagOpuVTe388czMvoGpTyqCHm2eHVtjAIYEhqAyerQksZxjye\np7V8TWb788Lpy9aAF8NcLbF8KYGw4raJcEgsoLieNDfNo+iwELIZNf4VcLHd\nvHOFER3aX0NyaKjZi9bljtxYGloAKiq8XbB7Gjm0MVFCRDv/bH2luzP3FU0S\nx1pRvV8xkXm1LEaDXhBVt3Oyusr5Tuf+5EJknTQwYH3BZj+VomMPL5OxIVSd\njx2CFpppL+2ooxjaBxUZ7X32CVkfSC2XcY9JX/9YiDtJ71MO0lR/vFuj7zYW\nzuG6\r\n=P7Cz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdPLhh2JqZHT4XxcU8iWCpGvoo64QN1FnAJx6RCIBkIgIhAPZKyEpd5HYpEtXOA296cVwYJk30AqcwXn3kZaRZ6asF"}]},"maintainers":[{"name":"lucleray","email":"luc.leray@gmail.com"}],"_npmUser":{"name":"lucleray","email":"luc.leray@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-purgecss_3.1.1_1561541313264_0.8137488760357214"},"_hasShrinkwrap":false},"3.1.2":{"name":"next-purgecss","version":"3.1.2","keywords":["next-plugins","next","next.js","purgecss"],"description":"nextjs + purgecss for faster websites 🔥","main":"index.js","author":{"name":"lucleray"},"homepage":"https://github.com/lucleray/next-purgecss#readme","bugs":{"url":"https://github.com/lucleray/next-purgecss/issues"},"repository":{"type":"git","url":"git+https://github.com/lucleray/next-purgecss.git"},"license":"MIT","dependencies":{"glob-all":"^3.1.0","purgecss-webpack-plugin":"^1.3.1"},"devDependencies":{"babel-eslint":"^10.0.2","eslint":"^6.0.1","eslint-config-prettier":"^6.0.0","husky":"^3.0.0","lint-staged":"^9.2.0","prettier":"^1.18.2"},"scripts":{"lint":"eslint '**/*.js'"},"eslintConfig":{"parser":"babel-eslint","env":{"node":true,"es6":true,"browser":true},"extends":["eslint:recommended","prettier"]},"eslintIgnore":["examples"],"prettier":{"semi":false,"singleQuote":true},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["prettier --write","eslint","git add"]},"gitHead":"0d95d7f774b9c596362e8956d3a2cf69506cdb4e","_id":"next-purgecss@3.1.2","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-3wYFMZtFdYXCmE7hXiWx4AnTAMrqGPz7LQCl/iv8oERT80AxoIAZ4WDWlQdk/N2q0u0A4gbjEDjbihAopjB+bg==","shasum":"698f16bd94066503ef2a0d81914c1abaaae22086","tarball":"https://registry.npmjs.org/next-purgecss/-/next-purgecss-3.1.2.tgz","fileCount":3,"unpackedSize":5146,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1YnuCRA9TVsSAnZWagAARxUP/18BR/oUGPtw2ZVQBUrz\njmup7nQ7MF7+iHDMlSOaONv0h5Jfa1CAzZSHszIsYE4emYntAP0mKGT1th9l\nQkDZdG2s3NWSZogTkeKhvx7SGSipVVkDYNeQ8JTCWLdVd2WIrAfZQgZSwZUq\nG1tLQo60EZEZg+KdK1yENvCbX8Vc6kdUpSs6kFNBEK3nyCLVeCtOj6CaVTGD\ni253aMrCvnab409fJpny4P1Pb8heiOX1SGelmFbiFWWXYdjVuIJtggMSmEXR\n8YY2m4RlnVJPsqrCv3Bt9+vVbg+IeKQeMJb6Na2xyTNv4+SxgcHL2Kp8VmvJ\nABDEEP0NY+26t+2npj5mI34fTS4bJFOx3Ods66tH7tl17qgGWO+5QFInwFzb\ndfIr9ZT6opEzGsI3i9n0u/KINRh/EQJ71tprUk2q2c24cvzkXbSsLqMG1bX/\noidlvN1CMzLW3W/Hj7ocp6CdOnDyljc4VKIOkif24Xa7D0xYllfMELNMn7iD\njuHJ73Hv1Nk7wsgwJGL/Tw7S3w2EvaGlrm/P7pSaBsliODLRGB82gqGR0OrI\n6wNEyKlby4+zPnbX1UWt1W+4RTpkVRG9oAMA+a4pGN5PNZoSRiK9+syGSoaq\nbYiXyj2sQKXFWPf5dwpjLwmmKZ0ektJ3uM4IQeJql344fURcX5q9ZXq873eV\n4M9+\r\n=vl9U\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDy9JCJ0EwJBDrv3z0lbzQVmFg979m9f8kTkEPfTpt6RAIhALWSZUZo/TWwFl0SlkhKsbF0FCzHT4W838TXZ5xXFF/b"}]},"maintainers":[{"name":"lucleray","email":"luc.leray@gmail.com"}],"_npmUser":{"name":"lucleray","email":"luc.leray@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-purgecss_3.1.2_1574275566398_0.1784719521529985"},"_hasShrinkwrap":false},"4.0.0":{"name":"next-purgecss","version":"4.0.0","keywords":["next-plugins","next","next.js","purgecss"],"description":"nextjs + purgecss for faster websites 🔥","main":"index.js","author":{"name":"lucleray"},"homepage":"https://github.com/lucleray/next-purgecss#readme","bugs":{"url":"https://github.com/lucleray/next-purgecss/issues"},"repository":{"type":"git","url":"git+https://github.com/lucleray/next-purgecss.git"},"license":"MIT","dependencies":{"glob-all":"3.1.0","purgecss-webpack-plugin":"2.1.0"},"devDependencies":{"babel-eslint":"^10.0.2","eslint":"^6.0.1","eslint-config-prettier":"^6.0.0","husky":"^4.2.3","lint-staged":"^10.0.8","prettier":"^2.0.1"},"scripts":{"lint":"eslint '**/*.js'"},"eslintConfig":{"parser":"babel-eslint","env":{"node":true,"es6":true,"browser":true},"extends":["eslint:recommended","prettier"]},"eslintIgnore":["examples"],"prettier":{"semi":false,"singleQuote":true},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["prettier --write","eslint","git add"]},"gitHead":"89ad6f5b8f13d446db2170911bcab858e5c38af3","_id":"next-purgecss@4.0.0","_nodeVersion":"12.16.0","_npmVersion":"6.13.7","dist":{"integrity":"sha512-JrZTIvE1x9W1DNB/G4MkjMp5JYNdQnQmXb0qwIu341ETgwQ8FaboDzStREDaY4KK2aYY+jg+1mu7lCZ4FFe7NQ==","shasum":"33b91ddb7e382ba01898b5ae897fea5a29ea6816","tarball":"https://registry.npmjs.org/next-purgecss/-/next-purgecss-4.0.0.tgz","fileCount":3,"unpackedSize":5144,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeef5FCRA9TVsSAnZWagAAzo4P/2KRMbvjBPT/49Fb1kwT\n2N1JXTgwy8oFw3AQlD+feXHKL30IBePFkRv2jJoK8RIxRv7saM2Nsg+KTL06\neeur9a26UuuA7WlK03W+SBX0w6v7jZnGyN6ruJxTswjt6inIhifAB6eh+THH\nVeavVAoCayqgigJzUg027FuaHLMwLu07WO7kUdi7mnoaGtGtQWWe+2Gu1r/2\nre4UwccjoCOQLqXDgbt9/mJ1jHPVCcWgZu0zm+s+NerMmN5Qoxy+R2eqdqpf\nuw3ANojzfrD3u2WHsPi6TD2mFJWQllZ53OcoIP4/uluPE0S4zE6T8O423zhK\nQafYN4vzI+2Rdw0z20X9p/6CF/w8FEheG1uUt0ZooozYCB68Rm4VseLKpurB\nOzT0nOIk65DMhSgQCnj8I4kwIN4M2ES0Vpp1hb3W1wHDPRUHlNz2owEFwRFe\npbSbD5rWEjRxmL7fukETfrM33Y4d+Og4jAf54b/Qg6R3J+mCzvbD/jAzwcNC\ncb1CEjfutyF98/+DXAl6P5ZVZdFniN09TCjpxVnfK8PYK7VXnkhoj3ND2Z4O\nIgenNyL9mipFraAVclDWICYr6OaSGZPE27iXckdl+9Fhzj6dMXrCtRS3weDP\neCzasttvfegGcSyQpeyHHX4sv2xKXf9+s9rVc5RGrG/1PUdIbwLSKBS2I4hr\n3phG\r\n=bB4y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIClRz1Zr3FHQWdUHoZVFw3OqVOt0CAfmE8hie97WV3QQAiEAyJP3K6aqDyqoau8vmzv7KdU4wEDheMlkPDgQNziki5c="}]},"maintainers":[{"name":"lucleray","email":"luc.leray@gmail.com"}],"_npmUser":{"name":"lucleray","email":"luc.leray@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-purgecss_4.0.0_1585053253526_0.638331373329518"},"_hasShrinkwrap":false}},"time":{"created":"2018-04-05T14:04:01.041Z","0.0.1":"2018-04-05T14:04:01.111Z","modified":"2022-06-21T02:31:08.453Z","1.0.0":"2018-07-25T11:38:27.717Z","1.0.1":"2018-07-25T11:42:15.829Z","1.0.2":"2018-08-16T09:15:10.854Z","1.0.3":"2018-09-24T10:46:56.677Z","1.0.4":"2018-11-05T09:57:39.713Z","2.0.0-beta.0":"2018-11-05T16:34:22.488Z","2.0.0-beta.1":"2018-11-05T16:42:10.725Z","2.0.0":"2018-11-05T16:59:28.721Z","3.0.0":"2018-11-16T08:57:48.212Z","3.0.1":"2019-02-20T14:23:39.850Z","3.1.0":"2019-06-25T20:35:59.519Z","3.1.1":"2019-06-26T09:28:33.389Z","3.1.2":"2019-11-20T18:46:06.521Z","4.0.0":"2020-03-24T12:34:13.621Z"},"maintainers":[{"name":"lucleray","email":"luc.leray@gmail.com"}],"description":"nextjs + purgecss for faster websites 🔥","author":{"name":"lucleray"},"license":"MIT","readme":"# next-purgecss\n\nNext.js + Purgecss = 🔥\n\n[Next.js](https://nextjs.org/) makes it easy to create SSR and static React applications.\n\n[Purgecss](https://www.purgecss.com/) helps you remove unused CSS.\n\n## Installation\n\n> 🏎 Check out the [**examples folder**](examples) to see examples for your specific setup.\n\n### 1. Install the packages\n\n`next-purgecss` requires one of the following **css next plugins** :\n\n- [next-css](https://github.com/zeit/next-plugins/tree/master/packages/next-css)\n- [next-less](https://github.com/zeit/next-plugins/tree/master/packages/next-less)\n- [next-sass](https://github.com/zeit/next-plugins/tree/master/packages/next-sass)\n\nJust pick the one that fits your needs. In the following steps, I will use `next-css` but it works the same for the other **css next plugins**.\n\nFor example, install `next-css` and `next-purgecss` :\n\n```\nyarn add @zeit/next-css next-purgecss --dev\n```\n\nor with npm :\n\n```\nnpm install @zeit/next-css next-purgecss --save-dev\n```\n\n### 2. Edit `next.config.js`.\n\n```js\n// next.config.js\nconst withCss = require('@zeit/next-css')\nconst withPurgeCss = require('next-purgecss')\n\nmodule.exports = withCss(withPurgeCss())\n```\n\n## Options\n\n### `purgeCssEnabled`\n\nBy default, `next-purgecss` will always remove unused CSS, regardless of build environment. You can change that by defining a function for the `purgeCssEnabled` option. The `purgeCssEnabled` function receives two arguments:\n\n| Argument | Type | Description |\n| --- | --- | --- |\n| `dev` | `Boolean` | `true` in development mode (running `next`) or `false` in production mode (running `next start`) |\n| `isServer` | `Boolean` | `true` during server side compilation or `false` during client side compilation |\n\n```js\n// next.config.js\nmodule.exports = withCss(\n  withPurgeCss({\n    purgeCssEnabled: ({ dev, isServer }) => (!dev && !isServer) // Only enable PurgeCSS for client-side production builds\n  })\n)\n```\n\n### `purgeCssPaths`\n\nBy default, this plugin will scan `components` and `pages`\ndirectories for classnames. You can change that by defining `purgeCssPaths`.\n\n```js\n// next.config.js\nmodule.exports = withCss(\n  withPurgeCss({\n    purgeCssPaths: [\n      'pages/**/*',\n      'components/**/*',\n      'other-components/**/*' // also scan other-components folder\n    ]\n  })\n)\n```\n\n### `purgeCss`\n\nYou can pass custom options to\n[Purgecss](https://github.com/FullHuman/purgecss-webpack-plugin) by defining\n`purgeCss` object in your `next.config.js`.\n\n```js\n// next.config.js\nmodule.exports = withCss(\n  withPurgeCss({\n    purgeCss: {\n      whitelist: () => ['my-custom-class']\n    }\n  })\n)\n```\n\nThe list of available options are documented in [`purgecss-webpack-plugin`\ndocs](https://github.com/FullHuman/purgecss-webpack-plugin#options).\n\n> ⚠️ `purgeCss.paths` will overwrite `purgeCssPaths`\n","readmeFilename":"readme.md","homepage":"https://github.com/lucleray/next-purgecss#readme","keywords":["next-plugins","next","next.js","purgecss"],"repository":{"type":"git","url":"git+https://github.com/lucleray/next-purgecss.git"},"bugs":{"url":"https://github.com/lucleray/next-purgecss/issues"}}