Releases: freshheads/webpack-config-builder
v3.0.0
This release doesn't introduce any breaking changes in the config but we upgraded some dependencies that could introduce breaking changes in your project. By pushing our dependencies versions forward we are preparing to support webpack 5.x when stable.
[BREAKING]: We now require Typescript 4.x when using the TypescriptAdapter
[BREAKING]: We now require sass-loader 10.x
[BREAKING]: We now require css-loader 4.x
[BREAKING]: We now require terser-webpack-plugin 4.x
[BREAKING]: We now require postcss / postcss-loader 4.x
[NEW] Added DefaultSonataAdminStack adapter which we use for our new implementation of Sonata Admin.
v2.0.0
[NEW] Support for css modules! You can now use following syntax in js apps.
import styles from './test.module.scss';
<div className={styles.test}>
For more info read this article on css tricks
[BREAKING]: This release contains upgrades that result in an minimum version of Node v12.13.0
[BREAKING]: Copy image plugin has changed some options, this could have impact when you are using additional patterns for the CopyImageAdapater. See changelog
[BREAKING]: Sass implementation is now part of CSS adapter to simplify code and speed up build times. CssAdapter now has a sass config so move existing settings in DefaultStackAdapter to css:
new DefaultStackAdapter({
css: {
enabled: true,
sass: {
enabled: true;
sassLoaderOptions: {
sourceMap: false,
},
}
},
});
[BREAKING]: A lot of adapters have set new minimum version requirements. When building warnings will be shown so you know what to update.
[FIXED]: Sourcemaps are now build with eval-source-map instead of inline-source-map which was not suited for development. This should speed up watching tasks. We might want to speed this up more by only showing line numbers in sourcemaps. See webpack readme
[NEW]: You are no longer limited to using babel.config.js
files. We made this change to follow new recommendations by babel to set config in babel.config.json
file whenever possible. This should speed up build times as this can be better cached. Read more info on configuring babel
v1.0.0
[BREAKING]: copy image plugin now use paths relative to build/images directory and no longer relative to where script is executed so /app/src/images/logos/logo.svg
becomes /images/logos/logo.svg
[BREAKING]: dependency upgrades that now require node v10
v0.6.0
Changes
Switched from Node-Sass to Dart-Sass which is the new primary implementation of sass.
This has some breaking changes:
- compound selectors can not be extended. See https://sass-lang.com/documentation/breaking-changes/extend-compound
- Stricter with variables eg. color settings need to be strings
But also creates new posibilities:
- Built in sass modules: https://sass-lang.com/documentation/modules
- A lot of new features related to the module system like namesspaces, no longer add duplicate imports and better theming options. See: https://css-tricks.com/introducing-sass-modules/
There are migrations tools that can make your project use the new module system.
v0.5.0
Changes
- Added Terser minification to support ES6 syntax
- Dropped Uglify JS minification in favor of Terser
- Validate minimum version of adapter required modules in adapter itself, instead of in peer dependencies to make sure that it is only validated when the adapter is actually used
- Minimum versions might be newer than previously defined in peer dependencies, this makes this version a breaking change.
v0.4.0
Changes
- Added Freshheads AdminStackAdapter
Fixes
- StatsWriter not adding copied assets to stats.json