Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: migrate to webpack 5 (#9) #12

Merged
merged 1 commit into from
May 4, 2022
Merged

feat: migrate to webpack 5 (#9) #12

merged 1 commit into from
May 4, 2022

Conversation

DoubleU23
Copy link
Member

BREAKING CHANGE: for webpack@4 use @stackr23/webpack@2

  • deps: upgrade webpack packages
    webpack, webpack-cli, webpack-dev-server, webpack-merge

  • deps: upgrade other webpack releated pckgs

    • webpack-helpers: copy-webpack-plugin, html-webpack-plugin, mini-css-extract-plugin
    • webpack-loaders: loader-utils, css-loader, postcss-loader", sass-loader, source-map-loader, style-loader
  • deps: upgrade karma-webpack to v5

  • deps: update post-css packages

  • refactor(webpack-merge): migrate to new version

  • refactor: migrate post-css options to v8

  • refactor: migrate options to webpack v5

    • splitChunks.cacheGroups.vendorssplitChunks.cacheGroups.defaultVendors
    • change sass-loaders 'query' key to 'options'
  • refactor: remove addEnvVariables() in merge fn
    TODO: refactor mode/env (fix(ENVVARS): refactor mode and env #4)

  • config(npm): remove -p from webpack commands

  • config(test): use NODE_ENV in karma.webpack.mode

  • test(assets): remove __esModule' import test

closes #10

BREAKING CHANGE: for `webpack@4` use `@stackr23/webpack@2`

* deps: upgrade webpack packages
`webpack`, `webpack-cli`, `webpack-dev-server`, `webpack-merge`
* deps: upgrade other webpack releated pckgs
  * webpack-helpers: `copy-webpack-plugin`, `html-webpack-plugin`, `mini-css-extract-plugin`
  * webpack-loaders: `loader-utils`, `css-loader`, `postcss-loader"`, `sass-loader`, `source-map-loader`, `style-loader`
* deps: upgrade `karma-webpack` to v5
* deps: update post-css packages

* refactor(webpack-merge): migrate to new version
* refactor: migrate `post-css` options to v8
* refactor: migrate  options to webpack v5
  * `splitChunks.cacheGroups.vendors` → `splitChunks.cacheGroups.defaultVendors`
  * change `sass-loader`s 'query' key to 'options'
* refactor: remove `addEnvVariables()` in merge fn
  TODO: refactor mode/env (#4)

* config(npm): remove `-p` from webpack commands
* config(test): use `NODE_ENV` in karma.webpack.mode
* test(assets): remove __esModule' import test

closes #10
@DoubleU23 DoubleU23 merged commit 9d04e2d into master May 4, 2022
@DoubleU23
Copy link
Member Author

🎉 This PR is included in version 2.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[update] migrate to v5 (PR #9)
1 participant