Skip to content

Instantly share code, notes, and snippets.

@mul14
Created October 23, 2018 14:25
Show Gist options
  • Save mul14/6ee410bd6a5339f1ed0b657d1d101711 to your computer and use it in GitHub Desktop.
Save mul14/6ee410bd6a5339f1ed0b657d1d101711 to your computer and use it in GitHub Desktop.
Vue Configuration
const PurgecssPlugin = require('purgecss-webpack-plugin')
// const PurifycssPlugin = require('purifycss-webpack')
const glob = require('glob-all')
const path = require('path')
module.exports = {
lintOnSave: false,
configureWebpack: {
plugins: [
new PurgecssPlugin({
paths: glob.sync([
path.join(__dirname, './public/index.html'),
path.join(__dirname, './src/**/*.vue'),
path.join(__dirname, './src/components/**/*.js'),
path.join(__dirname, './src/views/**/*.js'),
])
}),
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment