Skip to content

Commit 5274985

Browse files
committed
switch to vue-html-loader
1 parent 8d01512 commit 5274985

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

circle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
machine:
22
node:
3-
version: iojs-v2.3.0
3+
version: iojs-v4.0.0

lib/loader.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = function (content) {
2323
// check if there are custom loaders specified with
2424
// vueLoader.withLoaders(), otherwise use defaults
2525
var loaders = loaderUtils.parseQuery(this.query)
26-
loaders.html = loaders.html || 'html'
26+
loaders.html = loaders.html || 'vue-html'
2727
loaders.css = loaders.css || 'style!css'
2828
loaders.js = loaders.js || ''
2929

@@ -64,7 +64,7 @@ module.exports = function (content) {
6464
// unknown lang, assume a loader for it is used
6565
switch (type) {
6666
case 'template':
67-
return 'html!' + rewriter + 'template-html-loader?raw&engine=' + lang + '!'
67+
return 'vue-html!' + rewriter + 'template-html?raw&engine=' + lang + '!'
6868
case 'style':
6969
return 'style!css!' + rewriter + lang + '!'
7070
case 'script':
@@ -123,5 +123,5 @@ module.exports = function (content) {
123123
* end for the extracted parts of a component.
124124
*/
125125
module.exports.withLoaders = function (opts) {
126-
return 'vue-loader?' + JSON.stringify(opts).replace(/!/g, '\\u0021')
126+
return 'vue?' + JSON.stringify(opts).replace(/!/g, '\\u0021')
127127
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"postcss-selector-parser": "^1.1.2"
3232
},
3333
"peerDependencies": {
34+
"vue-html-loader": "^1.0.0",
3435
"css-loader": "*",
35-
"html-loader": "*",
3636
"style-loader": "*"
3737
},
3838
"devDependencies": {
@@ -41,7 +41,7 @@
4141
"chai": "^3.0.0",
4242
"css-loader": "^0.15.4",
4343
"eslint": "^1.0.0-rc-1",
44-
"html-loader": "^0.3.0",
44+
"vue-html-loader": "^1.0.0",
4545
"jade": "^1.11.0",
4646
"jsdom": "^5.4.3",
4747
"mkdirp": "^0.5.1",

0 commit comments

Comments
 (0)