diff --git a/package.json b/package.json index eec739c..050a0a1 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "dependencies": { "browserify": "^13.0.0", "camelcase-keys": "^2.1.0", - "cssmin": "^0.4.3", + "csso": "^1.8.0", "glob": "^7.0.3", "handlebars": "^4.0.5", "html-minifier": "^1.3.1", diff --git a/scripts/build-frontend.js b/scripts/build-frontend.js index 2fcfb84..092a358 100644 --- a/scripts/build-frontend.js +++ b/scripts/build-frontend.js @@ -65,7 +65,7 @@ function bundleHtml(config) { } function bundleCss() { - const minify = require('cssmin'); + const minify = require('csso').minify; glob('static/css/**/*.css', {}, (er, files) => { let css = ''; for (const file of files) {