Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-app
提交
3aa1dffa
U
uni-app
项目概览
DCloud
/
uni-app
3 个月 前同步成功
通知
725
Star
38705
Fork
3642
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
7
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
7
Issue
7
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3aa1dffa
编写于
9月 07, 2021
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(nvue): file-loader
上级
424433f5
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
35 addition
and
3 deletion
+35
-3
packages/uni-cli-nvue/package.json
packages/uni-cli-nvue/package.json
+1
-0
packages/uni-cli-nvue/src/webpack/config/module/rules/fileLoader.ts
...ni-cli-nvue/src/webpack/config/module/rules/fileLoader.ts
+16
-2
yarn.lock
yarn.lock
+18
-1
未找到文件。
packages/uni-cli-nvue/package.json
浏览文件 @
3aa1dffa
...
...
@@ -33,6 +33,7 @@
"css"
:
"~2.2.1"
,
"de-indent"
:
"^1.0.2"
,
"escodegen"
:
"^1.8.1"
,
"file-loader"
:
"^6.2.0"
,
"hash-sum"
:
"^1.0.2"
,
"he"
:
"^1.1.0"
,
"less-loader"
:
"^10.0.1"
,
...
...
packages/uni-cli-nvue/src/webpack/config/module/rules/fileLoader.ts
浏览文件 @
3aa1dffa
import
path
from
'
path
'
import
{
normalizePath
}
from
'
@dcloudio/uni-cli-shared
'
import
{
RuleSetRule
}
from
'
webpack
'
export
function
createFileLoader
():
RuleSetRule
{
...
...
@@ -7,8 +10,19 @@ export function createFileLoader(): RuleSetRule {
{
loader
:
'
file-loader
'
,
options
:
{
publicPath
:
'
assets
'
,
outputPath
:
'
assets
'
,
publicPath
(
_url
:
string
,
resourcePath
:
string
)
{
return
(
'
/
'
+
normalizePath
(
path
.
relative
(
process
.
env
.
UNI_INPUT_DIR
,
resourcePath
)
)
)
},
outputPath
(
_url
:
string
,
resourcePath
:
string
)
{
return
normalizePath
(
path
.
relative
(
process
.
env
.
UNI_INPUT_DIR
,
resourcePath
)
)
},
},
},
],
...
...
yarn.lock
浏览文件 @
3aa1dffa
...
...
@@ -5032,6 +5032,14 @@ file-entry-cache@^6.0.1:
dependencies:
flat-cache "^3.0.4"
file-loader@^6.2.0:
version "6.2.0"
resolved "https://registry.yarnpkg.com/file-loader/-/file-loader-6.2.0.tgz#baef7cf8e1840df325e4390b4484879480eebe4d"
integrity sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw==
dependencies:
loader-utils "^2.0.0"
schema-utils "^3.0.0"
fill-range@^7.0.1:
version "7.0.1"
resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40"
...
...
@@ -6982,6 +6990,15 @@ loader-utils@^1.0.2, loader-utils@^1.1.0, loader-utils@^1.4.0:
emojis-list "^3.0.0"
json5 "^1.0.1"
loader-utils@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-2.0.0.tgz#e4cace5b816d425a166b5f097e10cd12b36064b0"
integrity sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==
dependencies:
big.js "^5.2.2"
emojis-list "^3.0.0"
json5 "^2.1.2"
localstorage-polyfill@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/localstorage-polyfill/-/localstorage-polyfill-1.0.1.tgz#4b3083d4bc51d23b4158537e66816137413fd31a"
...
...
@@ -9037,7 +9054,7 @@ schema-utils@^2.6.5:
ajv "^6.12.4"
ajv-keywords "^3.5.2"
schema-utils@^3.1.0, schema-utils@^3.1.1:
schema-utils@^3.
0.0, schema-utils@^3.
1.0, schema-utils@^3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.1.1.tgz#bc74c4b6b6995c1d88f76a8b77bea7219e0c8281"
integrity sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录