Remove purge-css that does more harm than good

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-10-13 18:37:12 +02:00
parent 5676852206
commit 7a556d1305
3 changed files with 3 additions and 93 deletions

View File

@@ -1,7 +1,5 @@
const Dotenv = require('dotenv-webpack');
const path = require('path');
const PurgecssPlugin = require('purgecss-webpack-plugin');
const glob = require('glob-all');
module.exports = {
pluginOptions: {
@@ -15,13 +13,6 @@ module.exports = {
configureWebpack: {
plugins: [
new Dotenv({ path: path.resolve(process.cwd(), '../.env') }),
new PurgecssPlugin({
paths: glob.sync([
path.join(__dirname, './public/index.html'),
path.join(__dirname, './src/**/*.vue'),
path.join(__dirname, './src/**/*.ts')
])
})
],
module: {
rules: [ // fixes https://github.com/graphql/graphql-js/issues/1272