|
@@ -1,7 +1,6 @@ |
|
|
const webpack = require('webpack'); |
|
|
const webpack = require('webpack'); |
|
|
const path = require('path'); |
|
|
const path = require('path'); |
|
|
const ExtractTextPlugin = require('extract-text-webpack-plugin'); |
|
|
const ExtractTextPlugin = require('extract-text-webpack-plugin'); |
|
|
const purify = require("purifycss-webpack-plugin"); |
|
|
|
|
|
const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin'); |
|
|
const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin'); |
|
|
|
|
|
|
|
|
module.exports = { |
|
|
module.exports = { |
|
@@ -31,14 +30,7 @@ module.exports = { |
|
|
] |
|
|
] |
|
|
}, |
|
|
}, |
|
|
plugins: [ |
|
|
plugins: [ |
|
|
new ExtractTextPlugin('lesspass.min.css'), |
|
|
|
|
|
new purify({ |
|
|
|
|
|
basePath: __dirname, |
|
|
|
|
|
paths: [ |
|
|
|
|
|
"src/**/*.html", |
|
|
|
|
|
"src/**/*.vue" |
|
|
|
|
|
] |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
new ExtractTextPlugin('lesspass.min.css') |
|
|
] |
|
|
] |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|