Skip to content

Commit f2330e4

Browse files
committed
Use the alternative name for static: assets
1 parent afc3d05 commit f2330e4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const js = [{
3333
Fingerprinting arbitrary files, like fonts and images:
3434

3535
```javascript
36-
export const static = [{
36+
export const assets = [{
3737
source: "./assets",
3838
target: "./dist/assets"
3939
}];

src/static.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ and `target` is the target folder.
1010
The resulting configuration might look something like this:
1111

1212
```js
13-
export const static = [{
13+
export const assets = [{
1414
source: "./images",
1515
target: "./public/images"
1616
}, {
@@ -28,7 +28,7 @@ In this example, we only copy `.ttf` fonts and omit images from the `templates`
2828
directory:
2929

3030
```js
31-
export const static = [{
31+
export const assets = [{
3232
source: "./fonts",
3333
target: "./public/fonts",
3434
filter: file => file.endsWith(".ttf")
@@ -57,7 +57,7 @@ If you prefer to compact your images on your own, you could for example use
5757
JPGs:
5858

5959
```js
60-
export const static = [{
60+
export const assets = [{
6161
source: "./src",
6262
target: "./dist",
6363
compact: {

0 commit comments

Comments
 (0)