Commit 024ab8f2 by Iwasaki Yudai

Minify bundled js code

1 parent 2b4eb55d
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
...@@ -2,10 +2,11 @@ ...@@ -2,10 +2,11 @@
"devDependencies": { "devDependencies": {
"ts-loader": "^2.0.3", "ts-loader": "^2.0.3",
"typescript": "^2.3.2", "typescript": "^2.3.2",
"uglifyjs-webpack-plugin": "^1.0.0-beta.2",
"webpack": "^2.5.1" "webpack": "^2.5.1"
}, },
"dependencies": { "dependencies": {
"libapps": "github:yudai/libapps#hterm-1.70", "libapps": "github:yudai/libapps#release-hterm-1.70",
"xterm": "^2.7.0" "xterm": "^2.7.0"
} }
} }
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
module.exports = { module.exports = {
entry: "./src/main.ts", entry: "./src/main.ts",
output: { output: {
...@@ -15,5 +17,8 @@ module.exports = { ...@@ -15,5 +17,8 @@ module.exports = {
exclude: [/node_modules/], exclude: [/node_modules/],
} }
] ]
} },
plugins: [
new UglifyJSPlugin()
]
}; };
This diff could not be displayed because it is too large.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!