diff --git a/lib/template-loader.js b/lib/template-loader.js index 575ea0c5b..af3d6e083 100644 --- a/lib/template-loader.js +++ b/lib/template-loader.js @@ -6,6 +6,12 @@ module.exports = function (content) { this.cacheable && this.cacheable() var callback = this.async() var opt = loaderUtils.parseQuery(this.query) + var vue = this.options.vue + if (vue && vue.template) { + for (var key in vue.template) { + opt[key] = vue.template[key] + } + } function exportContent (content) { if (opt.raw) {