diff --git a/lib/builder/webpack/vue-loader.config.js b/lib/builder/webpack/vue-loader.config.js index 659eded04b..385fa49425 100644 --- a/lib/builder/webpack/vue-loader.config.js +++ b/lib/builder/webpack/vue-loader.config.js @@ -20,6 +20,10 @@ export default function ({ isClient }) { 'stylus': styleLoader.call(this, 'stylus', 'stylus-loader'), 'styl': styleLoader.call(this, 'stylus', 'stylus-loader') }, + template: { + // for pug, see https://github.com/vuejs/vue-loader/issues/55 + doctype: 'html' + }, preserveWhitespace: false, extractCSS: extractStyles.call(this) }