mirror of
https://github.com/valentineus/iii-client.git
synced 2025-04-29 01:51:24 +03:00
Added code minimization
This commit is contained in:
parent
5e4bfac39a
commit
95f2695948
10
package.json
10
package.json
@ -22,19 +22,23 @@
|
||||
"iii",
|
||||
"bot"
|
||||
],
|
||||
"main": "./lib/index.js",
|
||||
"main": "./dist/standalone.js",
|
||||
"devDependencies": {
|
||||
"babel-cli": "^6.24.1",
|
||||
"babel-core": "^6.24.1",
|
||||
"babel-loader": "^7.1.2",
|
||||
"babel-preset-es2015": "^6.24.1",
|
||||
"eslint": "^3.19.0",
|
||||
"uglify-js": "^3.1.2",
|
||||
"webpack": "^3.6.0"
|
||||
},
|
||||
"scripts": {
|
||||
"build-node": "babel --out-file ./dist/index.js ./src/index.js",
|
||||
"minify-standalone": "uglifyjs --mangle --compress --toplevel --source-map --output dist/standalone.min.js dist/standalone.js",
|
||||
"minify-browser": "uglifyjs --mangle --compress --toplevel --source-map --output dist/bundle.min.js dist/bundle.js",
|
||||
"minify": "npm run minify-browser && npm run minify-standalone",
|
||||
"build-standalone": "babel --out-file dist/standalone.js src/index.js",
|
||||
"build-browser": "webpack --config webpack.config.js",
|
||||
"build": "npm run build-browser && npm run build-node",
|
||||
"build": "npm run build-browser && npm run build-standalone",
|
||||
"check": "eslint ./src/*"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user