add 隐蔽规划
This commit is contained in:
@ -19,6 +19,22 @@ module.exports = defineConfig({
|
||||
'@': path.resolve(__dirname, 'src'),
|
||||
},
|
||||
}
|
||||
// 添加 .ini 文件处理规则
|
||||
if (config.module && config.module.rules) {
|
||||
config.module.rules.push({
|
||||
test: /\.ini$/,
|
||||
use: 'raw-loader'
|
||||
})
|
||||
} else {
|
||||
config.module = {
|
||||
rules: [
|
||||
{
|
||||
test: /\.ini$/,
|
||||
use: 'raw-loader'
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
css: {
|
||||
loaderOptions: {
|
||||
|
||||
Reference in New Issue
Block a user