front/build: change CSS minifier to csso
This commit is contained in:
parent
5774e5e9ef
commit
6a194b1d54
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"browserify": "^13.0.0",
|
"browserify": "^13.0.0",
|
||||||
"camelcase-keys": "^2.1.0",
|
"camelcase-keys": "^2.1.0",
|
||||||
"cssmin": "^0.4.3",
|
"csso": "^1.8.0",
|
||||||
"glob": "^7.0.3",
|
"glob": "^7.0.3",
|
||||||
"handlebars": "^4.0.5",
|
"handlebars": "^4.0.5",
|
||||||
"html-minifier": "^1.3.1",
|
"html-minifier": "^1.3.1",
|
||||||
|
|
|
@ -65,7 +65,7 @@ function bundleHtml(config) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function bundleCss() {
|
function bundleCss() {
|
||||||
const minify = require('cssmin');
|
const minify = require('csso').minify;
|
||||||
glob('static/css/**/*.css', {}, (er, files) => {
|
glob('static/css/**/*.css', {}, (er, files) => {
|
||||||
let css = '';
|
let css = '';
|
||||||
for (const file of files) {
|
for (const file of files) {
|
||||||
|
|
Loading…
Reference in a new issue