Skip to content

Releases: laynezh/vite-plugin-lib-assets

v1.0.0

08 Jan 15:58
Compare
Choose a tag to compare

   🚨 Breaking Changes

  • Option name and outputPath: The name option's [query] placeholder and the third parameter of the outputPath option (in function form) will start with ? to align with the behavior of file-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

22 Dec 05:59
Compare
Choose a tag to compare

No significant changes

    View changes on GitHub

v0.6.0

22 Dec 03:41
Compare
Choose a tag to compare

   🐞 Bug Fixes

    View changes on GitHub

v0.5.26

17 Nov 03:29
Compare
Choose a tag to compare

   🏎 Performance

    View changes on GitHub

v0.5.25

21 Sep 03:31
Compare
Choose a tag to compare

   🐞 Bug Fixes

    View changes on GitHub

v0.5.24

24 Aug 06:33
Compare
Choose a tag to compare

   🐞 Bug Fixes

    View changes on GitHub

v0.5.23

23 Jun 10:21
Compare
Choose a tag to compare

   🐞 Bug Fixes

    View changes on GitHub

v0.5.22

15 Apr 16:05
Compare
Choose a tag to compare

   🐞 Bug Fixes

    View changes on GitHub

v0.5.21

07 Mar 04:51
Compare
Choose a tag to compare

   🐞 Bug Fixes

    View changes on GitHub

v0.5.20

02 Mar 01:11
Compare
Choose a tag to compare

   🐞 Bug Fixes

    View changes on GitHub