Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
陈峰
7 years ago
Commit
8ac4772a57d3b434c5a8ac0c6bddb594fc32d7e0
1 parent
89ad907b
Merge branch 'hotfix/winLoaders' into 'release/9.12'
Hotfix/win loaders See merge request
!1535
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
build/yo.base.conf.js
build/yoho-pages-loader.js
build/yo.base.conf.js
View file @
8ac4772
...
...
@@ -22,25 +22,25 @@ module.exports = yo()
commons
:
{
chunks
:
'all'
,
name
:
'vendors'
,
test
:
/node_modules
\/
(
yoho-jquery
[
$
\/]
|core-js|yoho-cookie|yoho-qs|babel-runtime|yoho-jquery-lazyload
)
/
,
//eslint-disable-line
test
:
/node_modules
[\\/]
(
yoho-jquery
[
$
\/]
|core-js|yoho-cookie|yoho-qs|babel-runtime|yoho-jquery-lazyload
)
/
,
//eslint-disable-line
},
vue
:
{
priority
:
1
,
chunks
:
'all'
,
name
:
'vue'
,
test
:
/node_modules
\/
vue/
,
test
:
/node_modules
[\\/]
vue/
,
},
eachart
:
{
priority
:
1
,
chunks
:
'all'
,
name
:
'eachart'
,
test
:
/node_modules
\/
(
echart|zrender
)
/
,
test
:
/node_modules
[\\/]
(
echart|zrender
)
/
,
},
swiper
:
{
priority
:
1
,
chunks
:
'all'
,
name
:
'swiper'
,
test
:
/node_modules
\/
(
yoho-swiper
)
/
,
test
:
/node_modules
[\\/]
(
yoho-swiper
)
/
,
}
}
}
...
...
build/yoho-pages-loader.js
View file @
8ac4772
...
...
@@ -31,7 +31,7 @@ module.exports = function(source) {
}
return
`
case
'${moduleName}.${pageName}'
:
return
import
(
/* webpackChunkName: "page.${moduleName}.${pageName}" */
'./${path.relative(this.context, file)}'
);
`
;
//eslint-disable-line
return
import
(
/* webpackChunkName: "page.${moduleName}.${pageName}" */
'./${path.relative(this.context, file)
.split(path.sep).join("/")
}'
);
`
;
//eslint-disable-line
}),
''
);
}),
''
);
...
...
Please
register
or
login
to post a comment