Created
October 23, 2018 14:25
-
-
Save mul14/6ee410bd6a5339f1ed0b657d1d101711 to your computer and use it in GitHub Desktop.
Vue Configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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