Skip to content

Commit

Permalink
Perform minification via webpack rather than Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
lovett committed May 14, 2018
1 parent 2f3c7af commit 48cbd46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Makefile
Expand Up @@ -40,8 +40,6 @@ build: packages app worker server

app: dummy
webpack --config webpack-app.ts
./node_modules/.bin/uglifyjs -o build/public/app-minified.js build/public/app.js
mv build/public/app-minified.js build/public/app.js

hooks: dummy
cp hooks/* .git/hooks/
Expand Down
4 changes: 4 additions & 0 deletions webpack-app.ts
Expand Up @@ -50,6 +50,10 @@ const config: Configuration = {
],
},

optimization: {
minimize: true,
},

output: {
filename: 'app.js',
path: resolve(__dirname, 'build/public'),
Expand Down

0 comments on commit 48cbd46

Please sign in to comment.