mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-25 09:59:16 +00:00
Merge pull request #1361 from DaxChen/patch-1
Add better support for pug
This commit is contained in:
commit
2a4119cdb8
@ -20,6 +20,10 @@ export default function ({ isClient }) {
|
|||||||
'stylus': styleLoader.call(this, 'stylus', 'stylus-loader'),
|
'stylus': styleLoader.call(this, 'stylus', 'stylus-loader'),
|
||||||
'styl': 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,
|
preserveWhitespace: false,
|
||||||
extractCSS: extractStyles.call(this)
|
extractCSS: extractStyles.call(this)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user