1
0
mirror of synced 2025-12-10 08:28:08 +08:00

Fix uglifyjs unicode escpae #69

This commit is contained in:
redhoodsu
2018-06-20 16:21:43 +08:00
parent 90d1e5f5fa
commit 2d90406855
2 changed files with 6 additions and 3 deletions

View File

@@ -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",
@@ -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"
}

View File

@@ -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"'