I can't minify my css .
guoguoya opened this issue · comments
I use webpack@1.14.0 in my project. When I want to use ExtractTextPlugin to separate my css from js.
my options:
new ParallelUglifyPlugin({
test: [/.js$/, /.css$/],
cacheDir: '.cache/',
workerCount: 4,
uglifyJS: {
output: {
comments: false
},
compress: {
warnings: false
}
}
I get error as fllow:
ERROR in minifying main.css
SyntaxError: Unexpected token: punc ({)
I know it now. Package of uglify-js just can minify js.