Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vue-loader
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pi-plusplus
fork-from-github
vue-loader
Commits
ab067b0f
Commit
ab067b0f
authored
Mar 22, 2018
by
Evan You
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: loader check for windows
parent
42141c04
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
pitch.js
lib/loaders/pitch.js
+1
-1
plugin.js
lib/plugin.js
+1
-1
No files found.
lib/loaders/pitch.js
View file @
ab067b0f
...
...
@@ -31,7 +31,7 @@ module.exports.pitch = function (remainingRequest) {
// Inject style-post-loader before css-loader for scoped CSS and trimming
if
(
query
.
type
===
`style`
)
{
const
cssLoaderIndex
=
loaders
.
findIndex
(
l
=>
/
\/
css-loader/
.
test
(
l
.
request
))
const
cssLoaderIndex
=
loaders
.
findIndex
(
l
=>
/
(\/
|
\\)
css-loader/
.
test
(
l
.
request
))
if
(
cssLoaderIndex
)
{
const
afterLoaders
=
loaders
.
slice
(
0
,
cssLoaderIndex
+
1
).
map
(
toLoaderString
)
const
beforeLoaders
=
loaders
.
slice
(
cssLoaderIndex
+
1
).
map
(
toLoaderString
)
...
...
lib/plugin.js
View file @
ab067b0f
...
...
@@ -27,7 +27,7 @@ module.exports = class VueLoaderPlugin {
const
normalizedVueUse
=
normalizedVueRule
.
use
.
map
(
cleanUse
)
// get vue-loader options
const
vueLoaderUseIndex
=
normalizedVueUse
.
findIndex
(
u
=>
{
return
/^vue-loader|
\/
vue-loader/
.
test
(
u
.
loader
)
return
/^vue-loader|
(\/
|
\\)
vue-loader/
.
test
(
u
.
loader
)
})
if
(
vueLoaderUseIndex
<
0
)
{
...
...
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