From 6a194b1d543c6112c19d7208e0a2c16fa07c9695 Mon Sep 17 00:00:00 2001 From: rr- Date: Sun, 27 Mar 2016 23:00:42 +0200 Subject: [PATCH] front/build: change CSS minifier to csso --- package.json | 2 +- scripts/build-frontend.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index eec739c0..050a0a18 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 2fcfb846..092a3585 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) {