chore(web-console): upgrade webpack, enable HMR #205
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Description:
Update webpack and webpack-dev-server, remove externalized babel configs, refactor dev/prod split in webpack config, add babel config, remove slow clean-webpack-plugin, ignore .yarn files, split bundle output into main and vendor chunks, enable hot reload, use cheaper devtool, do not resolve symlinks, use explicit styled icons packages to avoid bundle size explosion, tidier code with no notable changes, mark react-components as side effects free to enable webpack tree-shaking, and build react-components with esNext modules for tree shaking and hot reload.
Commit log:
will move them to webpack config next to babel-loader
clean-webpack-plugin
for now, seems to be slow.yarn
files where possiblereact-components
as side effects freethis enables webpack to tree-shake the library
this enables tree shaking and hot reload