Skip to content

Commit

Permalink
fix(build): fix source-map and uglify
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaledgarbaya authored May 24, 2017
1 parent b1c5ebe commit 4191bd6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -151,5 +151,7 @@ $RECYCLE.BIN/

# Windows shortcuts
*.lnk
# es-module.patch
*.patch

# End of https://www.gitignore.io/api/node,windows,osx,linux,vim
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"clean": "rimraf dist && rimraf coverage",
"build": "npm run clean && npm run build:ci",
"build:ci": "npm run vendor:version && npm run build:standalone && npm run build:modules",
"build:standalone": "BABEL_ENV=webpack webpack && BABEL_ENV=webpack NODE_ENV=production webpack -p",
"build:standalone:log": "BABEL_ENV=webpack npm run build && BABEL_ENV=webpack NODE_ENV=production webpack -p --json --profile > webpack-build-log.json",
"build:standalone": "BABEL_ENV=webpack webpack && BABEL_ENV=webpack NODE_ENV=production webpack ",
"build:standalone:log": "BABEL_ENV=webpack npm run build && BABEL_ENV=webpack NODE_ENV=production webpack --json --profile > webpack-build-log.json",
"build:modules": "BABEL_ENV=webpack babel lib -d dist/es6-modules",
"docs:build": "esdoc -c esdoc.json",
"docs:dev": "npm run build && npm run docs:build",
Expand Down
2 changes: 2 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ var plugins = [
'placeholders': true
}),
new webpack.optimize.OccurrenceOrderPlugin(),
new webpack.IgnorePlugin(/vertx/),
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV)
})
Expand Down Expand Up @@ -58,6 +59,7 @@ module.exports = [
module: {
loaders
},
devtool: 'cheap-module-source-map',
plugins
},
{
Expand Down

0 comments on commit 4191bd6

Please sign in to comment.