Webpack Build Tool, Support Features:
development mode, webpack build server, file memory, hot update.
publish mode, webpack build file to disk.
support webpack build result ui view.
support http proxy by koa-proxy
- webpack 4: webpack-tool: 4.x.x
- webpack 3: webpack-tool: 3.x.x
$ npm i webpack-tool --save
//build/index.jsconst WebpackTool = ;const NODE_ENV = processenvVIEW;const webpackTool =proxy:host: ''match: /\/debug/;const webpackConfig =entry:index: './src/index.js'module:rules:plugins:;if NODE_ENV === 'development'// start webpack build and show build result ui viewwebpackTool;else// if you want to show build result ui view for build mode, please set process.env.BUILD_VIEW=truewebpackTool;
"scripts":"start": "cross-env node build"
Start Webpack Debug Server: http://127.0.0.1:8888/debug