12 lines
321 B
TypeScript
12 lines
321 B
TypeScript
|
export default {
|
||
|
test: /.(woff2?|eot|ttf|otf)$/, // 匹配字体图标文件
|
||
|
type: "asset", // type选择asset
|
||
|
parser: {
|
||
|
dataUrlCondition: {
|
||
|
maxSize: 10 * 1024, // 小于10kb转base64
|
||
|
}
|
||
|
},
|
||
|
generator: {
|
||
|
filename: 'static/fonts/[name].[contenthash:8][ext]', // 文件输出目录和命名
|
||
|
},
|
||
|
}
|