Releases: laynezh/vite-plugin-lib-assets
Releases · laynezh/vite-plugin-lib-assets
v1.0.0
🚨 Breaking Changes
-
Option
name
andoutputPath
: Thename
option's[query]
placeholder and the third parameter of theoutputPath
option (in function form) will start with?
to align with the behavior offile-loader
. (#102)// before: libAssetsPlugin({ name: '[name].[contenthash:8].[ext]?[query]', outputPath: (url, resourcePath, resourceQuery) => { // `url` - file name processed by the `name` option,eg: `logo.fb2133.png` // `resourcePath` - `/original/absolute/path/to/file.js` // `resourceQuery` - `foo=bar` return url.endsWith('.png') ? 'image' : 'assets' }, }) // after: libAssetsPlugin({ // no longer need a `?` between [ext] and [query] name: '[name].[contenthash:8].[ext][query]', // `resourceQuery` parameter will start with `?` outputPath: (url, resourcePath, resourceQuery) => { // `url` - file name processed by the `name` option,eg: `logo.fb2133.png` // `resourcePath` - `/original/absolute/path/to/file.js` // `resourceQuery` - `?foo=bar` return url.endsWith('.png') ? 'image' : 'assets' }, })
🐞 Bug Fixes
- Fix
resourceQuery
value(remove prefixed ?) - by Saiya (6bb63) - Fix corrupt of binary file after building - by Saiya (a5735)
View changes on GitHub
v0.6.1
No significant changes
View changes on GitHub
v0.6.0
🐞 Bug Fixes
- Upgrade tsup's version to fix the type mismatch - by @coder-layne (bce95)
View changes on GitHub
v0.5.26
🏎 Performance
- Use the efficient String#replaceAll when supported #95 - by @coder-layne in #95 (6ad20)
View changes on GitHub
v0.5.25
🐞 Bug Fixes
- Assets cached under watch mode have an incorrect import path in importers #92 - by @coder-layne in #92 (63fcd)
View changes on GitHub
v0.5.24
🐞 Bug Fixes
- Fix the issue of CSS files under node_modules not being found, using the built-in resolve #79 #90 - by @coder-layne in #79 and #90 (823f8)
View changes on GitHub
v0.5.23
🐞 Bug Fixes
- Files from npm packages containing pure CSS were not being extracted properly #79" #81 - by @coder-layne in #79 and #81 (99f0c)
- Partial assets being outputted during rebuilds in watch mode #62 - by @coder-layne in #62 (a78f2)
View changes on GitHub
v0.5.22
🐞 Bug Fixes
- Files from npm packages containing pure CSS were not being extracted properly #79 - by @coder-layne in #79 (de09c)
View changes on GitHub
v0.5.21
🐞 Bug Fixes
- Register custom mime types to fix eot files not being recognized #76 - by @coder-layne in #76 (8a12d)
View changes on GitHub
v0.5.20
🐞 Bug Fixes
- Remove unnecessary transform - by @AriPerkkio (ae849)
- Support
?inline
query imports - by @AriPerkkio (96f8e)