Skip to content

Commit

Permalink
Merge pull request #14 from Simon-Initiative/fix-uglifyjs-option
Browse files Browse the repository at this point in the history
small fix to dis.sh
  • Loading branch information
eliknebel authored Jul 29, 2020
2 parents 51aa474 + 57092d0 commit f12a6df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ rm -rf /app/dist/*

# compile and minify the Elm application bundle
cd /app && elm make src/Main.elm --output=/app/optimized.js --optimize
uglifyjs optimized.js --compress 'pure_funcs="F2,F3,F4,F5,F6,F7,F8,F9,A2,A3,A4,A5,A6,A7,A8,A9",pure_getters,keep_fargs=false,unsafe_comps,unsafe' | uglifyjs --mangle --output=/app/dist/elm.js
uglifyjs optimized.js --compress 'pure_funcs="F2,F3,F4,F5,F6,F7,F8,F9,A2,A3,A4,A5,A6,A7,A8,A9",pure_getters,keep_fargs=false,unsafe_comps,unsafe' | uglifyjs --mangle --output /app/dist/elm.js

# copy over other static assets
cp -r assets dist/assets
Expand Down

0 comments on commit f12a6df

Please sign in to comment.