vue-cli plugin to add PurgeCSS
npm install @fullhuman/vue-cli-plugin-purgecss> A Vue CLI 3 Plugin for installing PurgeCSS
If you haven't yet installed vue-cli 3, first follow the install instructions here: https://github.com/vuejs/vue-cli
Generate a project using vue-cli 3.0:
``bash`
vue create my-app
Before installing the PurgeCSS plugin, make sure to commit or stash your changes in case you need to revert the changes.
To install the PurgeCSS plugin simply navigate to your application folder and add PurgeCSS.
`bash
cd my-app
vue add purgecss
`
Below are the PurgeCSS options set by this plugin:
`js./public//.html
{
content: [ , ./src//.vue ],
defaultExtractor (content) {
const contentWithoutStyleBlocks = content.replace(/