提交 b64bc5db 编写于 作者: fxy060608's avatar fxy060608

feat(v3): change svg,midia limit

上级 8de4eab4
......@@ -145,8 +145,10 @@ const v3 = {
const isAppView = !!vueOptions.pluginOptions['uni-app-plus']['view']
// 处理静态资源
const staticTypes = ['images', 'svg', 'media', 'fonts']
staticTypes.forEach(staticType => {
webpackConfig.module
.rule('images')
.rule(staticType)
.use('url-loader')
.loader('url-loader')
.tap(options => Object.assign(options, {
......@@ -161,6 +163,7 @@ const v3 = {
}
}
}))
})
const cacheConfig = {
cacheDirectory: false,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册