1
0
mirror of synced 2025-12-13 02:11:25 +08:00

chore: reduce css size

This commit is contained in:
surunzi
2019-11-14 15:28:07 +08:00
parent c26b2c9ca6
commit 2ea70ff0e5
2 changed files with 3 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
const autoprefixer = require('autoprefixer')
const classPrefix = require('postcss-class-prefix')
const clean = require('postcss-clean')
const webpack = require('webpack')
const pkg = require('../package.json')
const path = require('path')
@@ -13,7 +14,7 @@ const banner = pkg.name + ' v' + pkg.version + ' ' + pkg.homepage
const postcssLoader = {
loader: 'postcss-loader',
options: {
plugins: [classPrefix('eruda-'), autoprefixer]
plugins: [classPrefix('eruda-'), autoprefixer, clean()]
}
}