Skip to content

Commit

Permalink
fix: Updated build
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin Mackey committed May 9, 2019
1 parent 7d79837 commit b65ff3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"start": "concurrently --raw \"webpack-dev-server --open\" \"npm run test:watch\"",
"demo": "npm start",
"build:demo": "webpack -p",
"build:umd": "webpack --config webpack.config.umd.ts",
"build:umd": "webpack --mode=production --config webpack.config.umd.ts",
"build:ngc": "ngc -p tsconfig-ngc.json",
"build:dist": "npm run build:umd && npm run build:ngc",
"build:clean": "del-cli dist",
Expand Down
7 changes: 3 additions & 4 deletions webpack.config.umd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,10 @@ export default {
resolve: {
extensions: ['.ts', '.js']
},
optimization: {
minimize: true
},
plugins: [
new webpack.optimize.UglifyJsPlugin({
include: /\.min\.js$/,
sourceMap: true
}),
new webpack.ContextReplacementPlugin(
/angular(\\|\/)core(\\|\/)(esm(\\|\/)src|src)(\\|\/)linker/,
path.join(__dirname, 'src')
Expand Down

0 comments on commit b65ff3b

Please sign in to comment.