Skip to content

Commit

Permalink
docs: add distPath.assets and filename.assets configuration (#6403)
Browse files Browse the repository at this point in the history
  • Loading branch information
9aoy authored Oct 18, 2024
1 parent 0eb8b9d commit 0f2053f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ type DistPathConfig = {
media?: string;
server?: string;
worker?: string;
assets?: string;
};
```

Expand All @@ -36,6 +37,7 @@ const defaultDistPath = {
image: 'static/image',
media: 'static/media',
js: 'static/js',
assets: 'static/assets',
};
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ type FilenameConfig = {
font?: string;
image?: string;
media?: string;
assets?: string;
};
```

Expand All @@ -33,6 +34,7 @@ const devDefaultFilename = {
font: '[name].[contenthash:8][ext]',
image: '[name].[contenthash:8][ext]',
media: '[name].[contenthash:8][ext]',
assets: '[name].[contenthash:8][ext]',
};

// Production mode
Expand All @@ -44,6 +46,7 @@ const prodDefaultFilename = {
font: '[name].[contenthash:8][ext]',
image: '[name].[contenthash:8][ext]',
media: '[name].[contenthash:8][ext]',
assets: '[name].[contenthash:8][ext]',
};
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ type DistPathConfig = {
media?: string;
server?: string;
worker?: string;
assets?: string;
};
```

Expand All @@ -36,6 +37,7 @@ const defaultDistPath = {
image: 'static/image',
media: 'static/media',
js: 'static/js',
assets: 'static/assets',
};
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ type FilenameConfig = {
font?: string;
image?: string;
media?: string;
assets?: string;
};
```

Expand All @@ -33,6 +34,7 @@ const devDefaultFilename = {
font: '[name].[contenthash:8][ext]',
image: '[name].[contenthash:8][ext]',
media: '[name].[contenthash:8][ext]',
assets: '[name].[contenthash:8][ext]',
};

// 生产模式构建
Expand All @@ -44,6 +46,7 @@ const prodDefaultFilename = {
font: '[name].[contenthash:8][ext]',
image: '[name].[contenthash:8][ext]',
media: '[name].[contenthash:8][ext]',
assets: '[name].[contenthash:8][ext]',
};
```

Expand Down

0 comments on commit 0f2053f

Please sign in to comment.