0.11.3 • Published 16 days ago

@best-shot/preset-asset v0.11.3

Weekly downloads
23
License
MIT
Repository
github
Last release
16 days ago

@best-shot/preset-asset

A best-shot preset for asset.

npm github node

This preset offer the following features:

  • bundle jpg / jpeg / png / gif / svg
  • bundle woff / woff2 / otf / eot / ttf
  • image minify in production mode

Installation

npm install @best-shot/preset-asset --save-dev

Usage

// example: .best-shot/config.mjs
export const config = {
  presets: ['asset']
};

Tips

The mutable resourceQuery for image

Generate mutable resources filename:

import('./avatar/male.png?mutable');
// image/avatar/male.png

import('./header/header-bg.png');
// image/header-bg.min.xxxxxxxx.png

Preprocess non-ascii character

天地人-abc.jpg -> 4273f2f7-abc.jpg

Related

0.11.3

16 days ago

0.11.2

2 months ago

0.11.0

4 months ago

0.11.1

4 months ago

0.10.0

5 months ago

0.9.9

8 months ago

0.9.10

6 months ago

0.9.8

10 months ago

0.9.7

11 months ago

0.9.6

11 months ago

0.9.4

12 months ago

0.9.5

12 months ago

0.9.3

1 year ago

0.9.2

1 year ago

0.9.0

1 year ago

0.9.1

1 year ago

0.8.3

2 years ago

0.7.6

2 years ago

0.7.7

2 years ago

0.8.1

2 years ago

0.8.0

2 years ago

0.8.2

2 years ago

0.7.5

2 years ago

0.7.2

2 years ago

0.7.1

2 years ago

0.7.4

2 years ago

0.7.3

2 years ago

0.7.0

2 years ago

0.6.3

3 years ago

0.6.2

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.2

3 years ago

0.5.1

3 years ago

0.5.0

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago