ADD(ci) webpack build

pull/46/head
pubkey 6 years ago
parent aa200ce413
commit 9694ed0cec
  1. 1
      .travis.yml
  2. 7
      config/webpack.config.js
  3. 1
      package.json

@ -17,3 +17,4 @@ script:
- npm run test:typings
- npm run test:deps
- npm run test:size
- npm run build:size

@ -1,6 +1,6 @@
const path = require('path');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
@ -17,7 +17,10 @@ module.exports = {
entry: './dist/es/browserify.index.js',
optimization: {
minimizer: [
new UglifyJsPlugin()
new TerserPlugin({
cache: true,
parallel: true,
})
]
},
plugins,

@ -99,6 +99,7 @@
"rimraf": "2.6.3",
"solhint": "2.0.0",
"solidity-cli": "1.0.3",
"terser-webpack-plugin": "1.2.3",
"ts-node": "8.1.0",
"typescript": "3.4.5",
"uglify-es": "3.3.9",

Loading…
Cancel
Save