提交 346ca1e4 编写于 作者: G git_robot

Merge branch 'dev' of github.com:dcloudio/uni-app into dev

......@@ -7,6 +7,7 @@ const {
let inputDir
const uniModulesStaticRe = /uni_modules\/[^/]+\/static\//
module.exports = {
loader: 'file-loader',
options: {
......@@ -20,7 +21,8 @@ module.exports = {
resourcePath))
const subPackageStatic = Object.keys(process.UNI_SUBPACKAGES || {}).map(root => normalizePath(path.join(root,
'static')) + '/')
if (relativePath.startsWith('static/') || subPackageStatic.some(s => relativePath.startsWith(s))) {
if (relativePath.startsWith('static/') || uniModulesStaticRe.test(relativePath) ||
subPackageStatic.some(s => relativePath.startsWith(s))) {
return relativePath
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册