From ee97dee72ec1673ad18fe86855b1e1aceabba674 Mon Sep 17 00:00:00 2001 From: Anike Arni Date: Wed, 28 Dec 2016 17:51:54 -0200 Subject: Use webpack files for packaging --- web-ui/package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'web-ui/package.json') diff --git a/web-ui/package.json b/web-ui/package.json index 728699e6..6405102b 100644 --- a/web-ui/package.json +++ b/web-ui/package.json @@ -37,6 +37,7 @@ "karma-junit-reporter": "0.2.2", "karma-phantomjs-launcher": "1.0.1", "karma-requirejs": "1.0.0", + "minify": "^2.0.13", "modernizr": "^3.3.1", "quoted-printable": "^1.0.1", "requirejs": "2.2.0", @@ -54,14 +55,15 @@ "handlebars-watch": "watch 'npm run handlebars' app/templates", "compass": "compass compile", "compass-watch": "compass watch", - "build": "npm run clean && npm run handlebars && npm run build-js && npm run add_git_version && npm run compass", + "build": "npm run build-statics && npm run build-js", + "build-statics": "npm run clean && npm run handlebars && npm run add_git_version && npm run compass", + "build-prod": "npm run build-statics && webpack -p --config ./webpack.production.config.js", "build-js": "webpack --colors --progress", "jshint": "jshint --config=.jshintrc app test", "clean": "rm -rf 'dist/*' app/js/generated/hbs/* app/css/*", "buildmain": "node_modules/requirejs/bin/r.js -o config/buildoptions.js", "package": "/bin/bash config/package.sh", "imagemin": "node config/imagemin.js", - "minify_html": "html-minifier app/index.html --collapse-whitespace | sed 's|.*||' > dist/index.html", "minify_sandbox": "html-minifier app/sandbox.html --collapse-whitespace | sed 's|.*||' > dist/sandbox.html", "add_git_version": "/bin/bash config/add_git_version.sh" } -- cgit v1.2.3