Skip to content

Commit

Permalink
Fix uglifyjs unicode escpae #69
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Jun 20, 2018
1 parent 90d1e5f commit 2d90406
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "eruda.js",
"scripts": {
"ci": "npm run format && npm run lint && npm run test && npm run build",
"build": "webpack --config script/webpack.dev.js && webpack -p --config script/webpack.release.js",
"build": "webpack --config script/webpack.dev.js && webpack --config script/webpack.release.js",
"cov": "npm run test && remap-istanbul -i coverage/coverage-final.json -o coverage/coverage-remapped.json -t json && node script/coverage",
"dev": "webpack-dev-server --config script/webpack.dev.js --host 0.0.0.0",
"test": "karma start",
Expand Down Expand Up @@ -103,7 +103,7 @@
"prettier": "^1.13.5",
"remap-istanbul": "^0.9.5",
"sass-loader": "^6.0.6",
"webpack": "^3.10.0",
"webpack": "^3.12.0",
"webpack-dev-server": "^2.9.7",
"worker-loader": "^1.1.0"
}
Expand Down
5 changes: 4 additions & 1 deletion script/webpack.release.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ exports.plugins = exports.plugins.concat([
compress: {
warnings: false
},
comments: /eruda/
output: {
ascii_only: true
},
comments: /eruda v/
}),
new webpack.DefinePlugin({
ENV: '"production"'
Expand Down

0 comments on commit 2d90406

Please sign in to comment.