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
bd2581fa
Commit
bd2581fa
authored
Mar 20, 2018
by
Evan You
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
todos
parent
5503e2a2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
+5
-0
index.js
lib/index.js
+2
-0
style.spec.js
test/style.spec.js
+1
-0
template.spec.js
test/template.spec.js
+2
-0
No files found.
lib/index.js
View file @
bd2581fa
...
...
@@ -93,6 +93,7 @@ module.exports = function (source) {
}
// styles
// TODO construct an injection function instead
let
styleImports
=
``
if
(
descriptor
.
styles
.
length
)
{
styleImports
=
descriptor
.
styles
.
map
((
style
,
i
)
=>
{
...
...
@@ -126,6 +127,7 @@ var component = normalizer(
// TODO custom blocks
}
// Expose filename. This is used by the devtools and vue runtime warnings.
if
(
!
isProduction
)
{
code
+=
`\ncomponent.options.__file =
${
JSON
.
stringify
(
shortFilePath
)}
`
}
...
...
test/style.spec.js
View file @
bd2581fa
...
...
@@ -106,6 +106,7 @@ test('postcss', done => {
})
})
// TODO
// test('css-modules', done => {
// function testWithIdent (localIdentName, regexToMatch, cb) {
// mockBundleAndRun({
...
...
test/template.spec.js
View file @
bd2581fa
...
...
@@ -109,6 +109,7 @@ test('transform srcset', done => {
})
})
// TODO
// test('functional component with styles', done => {
// mockBundleAndRun({
// entry: 'functional-style.vue'
...
...
@@ -170,6 +171,7 @@ test('functional template', done => {
})
})
// TODO
// test('customizing template loaders', done => {
// mockBundleAndRun({
// entry: 'markdown.vue'
...
...
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