Skip to content
Snippets Groups Projects
Commit 46868c0c authored by ale's avatar ale
Browse files

Run PurgeCSS to reduce output css size

parent b2b8e88f
No related branches found
No related tags found
1 merge request!17Upgrade to webpack + Bootstrap4
ai.css
ai.js*
*.eot
*.otf
*.ttf
*.svg
......
const glob = require('glob');
const webpack = require('webpack');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const PurgeCSSPlugin = require('purgecss-webpack-plugin');
module.exports = {
mode: 'production',
......@@ -18,6 +20,9 @@ module.exports = {
jQuery: 'jquery',
}),
new MiniCssExtractPlugin(),
new PurgeCSSPlugin({
paths: glob.sync(__dirname + '/templates/*.tmpl'),
}),
],
module: {
rules: [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment