Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
胡锦波
/
org-manager-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a6dd8cb2
authored
Jun 23, 2022
by
胡锦波
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1. up
parent
b72764c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
vue.config.js
vue.config.js
View file @
a6dd8cb2
...
...
@@ -31,5 +31,21 @@ module.exports = {
chainWebpack
:
config
=>
{
config
.
plugin
(
'lodash'
).
use
(
webpack
.
ProvidePlugin
,
[{
_
:
'lodash'
}]);
},
configureWebpack
:
config
=>
{
// 配置别名等放到这里
// 用以解决在chrome sources中vue文件生成带hash而无法找准文件的问题
config
.
output
.
devtoolModuleFilenameTemplate
=
info
=>
{
const
resPath
=
info
.
resourcePath
;
if
(
(
/
\.
vue$/
.
test
(
resPath
)
&&
!
/type=script/
.
test
(
info
.
identifier
))
||
/node_modules/
.
test
(
resPath
)
)
{
return
`webpack:///
${
resPath
}
?
${
info
.
hash
}
`
;
}
return
`webpack:///
${
resPath
.
replace
(
"./src"
,
"my-code/src"
)}
`
;
};
}
}
\ No newline at end of file
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment