Bud v5.1.0 has been released
Bud v5.1.0 is a minor release. It includes a couple anticipated features and bug fixes.
There are many fixes and core improvements based on feedback from the v5.0.0 release. Thanks to everyone who filed issues. There are a couple minor breaking changes.
Adds support for webp
We now have an automated release process and will be publishing updates much faster. Thanks for your patience! It took a lot of work to get to this place and we think it’s going to prove to be worth it for our project and yours.
Known issues
If you use npm to install bud, you may need to remove dependencies that are shared with bud extensions in order to install the update.
After installation, run npx bud install
followed by npm install
to resolve everything.
In the near future bud will relax semver requirements to address this annoyance.
Breaking
There are relatively minor breaking changes for users of @roots/bud-imagemin and @roots/sage and one breaking change in core.
bud.assets requires absolute paths
If you wanted, consider the bud.path
helper to easily get an absolute path.
Resolve relative to the the src directory:
bud.assets([bud.path('src', 'images/**/*.{jpg,png}')])
Resolve from the root of your project:
bud.assets([bud.path('project', 'src/images/**/*.{jpg,png}')])
In the future, hopefully this will not be a requirement. But for now it is.
@roots/bud-imagemin
We have switched to @squoosh/lib and there is a new configuration API. It should be an easy change. See @roots/bud-imagemin docs.
@roots/sage
Users need to opt-in to specific features by installing:
- @roots/bud-stylelint
- @roots/bud-eslint
- @roots/bud-tailwindcss
- @roots/bud-prettier
Changelog
- fix(deps): bump image-minimizer-webpack-plugin to v3
- fix(framework): fixed font rule
- fix(bud-eslint): use @babel/eslint-parser
- feature(entrypoints-webpack-plugin): option to emit as html
- improve(bud-eslint): modularize eslint configs
- fix(framework) directory for emitted assets
- feat(framework) support webp
- fix(sage) public path
- fix(bud-purgecss)
- fix(framework) module import/registration order
- fix(framework) bud.assets: do not emit to assets dir
- fix(framework) module import/registration order
- improve(sage) dependencies removed from extension
- fix(framework) assets in nested directories
- fix(framework) fix inject client script for zero entry compilers
- fix(framework) fix sourcemap warning
- fix(sage) hmr fixes
- improve(framework): automated releases
Contributors
Thanks to everyone who contributed to this release!
@kellymears @QWp6t @ben @swalkinshaw @austinpray