diff options
author | Anike Arni <aarni@thoughtworks.com> | 2016-12-28 17:51:54 -0200 |
---|---|---|
committer | Anike Arni <aarni@thoughtworks.com> | 2016-12-28 17:51:54 -0200 |
commit | ee97dee72ec1673ad18fe86855b1e1aceabba674 (patch) | |
tree | e337e6bce3fcd77fd4d953d5cc6f44ab7e2b2188 /web-ui/config | |
parent | 93cec7cbc6c03b2bd95b1e031e894327bdaa65b4 (diff) |
Use webpack files for packaging
Diffstat (limited to 'web-ui/config')
-rw-r--r-- | web-ui/config/package.sh | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/web-ui/config/package.sh b/web-ui/config/package.sh index 4eb11929..cfb66879 100644 --- a/web-ui/config/package.sh +++ b/web-ui/config/package.sh @@ -23,33 +23,11 @@ export PIXELATED_BUILD='package' mkdir -p dist # initial npm tasks -./go build +./go build-prod ./go imagemin -./go minify_html ./go minify_sandbox -# concat js files and minify for app.min.js -cat \ -app/bower_components/modernizr/modernizr.js \ -app/bower_components/lodash/dist/lodash.js \ -app/bower_components/jquery/dist/jquery.js \ -app/bower_components/jquery-ui/jquery-ui.js \ -app/bower_components/jquery-file-upload/js/jquery.fileupload.js \ -app/bower_components/handlebars/handlebars.js \ -app/bower_components/typeahead.js/dist/typeahead.bundle.js \ -app/bower_components/iframe-resizer/js/iframeResizer.js \ -app/js/1.bundle.js \ -app/js/bundle.js > dist/app.js -node_modules/.bin/minify dist/app.js > dist/app.min.js -rm dist/app.js - -if [ ! -s dist/app.min.js ] -then -echo "Minification failed!" -exit 1; -fi - # concat js files and minify for sandbox.min.js cat \ app/js/sandbox.js \ |