Skip to content

Commit ebe38f9

Browse files
committed
fix: css not mini-> minicss: optimize-css-assets-webpack-plugin
1 parent a2b04d4 commit ebe38f9

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

config/plugin.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,4 +324,12 @@ exports.clean = {
324324
const options = { root: this.baseDir };
325325
return [dirs, options];
326326
}
327-
}
327+
};
328+
329+
exports.cssmini = {
330+
enable: true,
331+
env: 'prod',
332+
type: 'client',
333+
name: 'optimize-css-assets-webpack-plugin',
334+
args:{}
335+
};

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "easywebpack",
3-
"version": "4.7.0",
3+
"version": "4.7.1",
44
"description": "基于 Webpack 的前端构建工程化解决方案",
55
"keywords": [
66
"webpack",
@@ -32,6 +32,7 @@
3232
"mini-css-extract-plugin": "^0.4.0",
3333
"node-noop": "^1.0.0",
3434
"npm-install-webpack-plugin": "^4.0.5",
35+
"optimize-css-assets-webpack-plugin": "^5.0.1",
3536
"postcss-loader": "^2.1.0",
3637
"progress-bar-webpack-plugin": "^1.10.0",
3738
"service-worker-precache-webpack-plugin": "^1.0.0",

0 commit comments

Comments
 (0)