Releases: scriptex/webpack-mpa
Remove "Optisize"
Update the SVG generator
This release switches from SVGO + spritesh to svg-symbol-sprite
Fix usage of "url" and "server" CLI arguments
Migrating to Webpack 5 seemed to break usage of custom arguments such as --url
or --server
.
Webpack 5 supports the --env
flag which allows passing of custom arguments.
This release takes care of this bug and makes it possible to pass those arguments like this:
yarn start --env server
yarn start --env url=http://your-proxy.local
Update ITSCSS and Stylelint
This release updates:
- ITSCSS, which removes the node-sass peer dependency and all of its related security vulnerabilities
- Stylelint and all of its related plugins and extensions
Extended linting and migrating away from node-sass
This release:
- Switches to
sass
(dart-sass
) fromnode-sass
which allows usage of most recent SCSS features. - Extends the linting by adding
- eslint-plugin-compat
- stylelint-no-unsupported-browser-features
- Upgrades all dependencies to their latest versions
Updated SVG sprite
This release
- Updates the way SVG sprite is being generated by extracting the config in a separate
svgo.config.js
file and using SVGO v2. - Installs the missing
browserslist
peer dependency.
Fix issue with path being undefined on Windows
This release fixes #350 - the process.env.PWD
is undefined on Windows. It has been replaced with process.cwd()
Upgrade Webpack to v.5
This release updates Webpack to the latest version and also updates all other dependencies (including all Webpack plugins).
Fix CSS HMR and Critical CSS
This release fixes the HMR (hot module replacement) for CSS files.
This release also introduces a new approach for generating critical CSS.
Fix assets management, use webpack externals
This release fixes an issue with clean-webpack-plugin
where the 3rd party assets (fonts, images, etc) were not correctly copied in the dist
folder.
This release also improves the usage of browser globals in JS modules by extending the Webpack configuration to also include externals
setting.
All dependencies have been updated to their latest versions.