cli 3
npm i -D pug pug-html-loader pug-plain-loader
cli 2
npm i -D pug pug-html-loader
webpack config
module:{
reules:[
{test:/\.pug$/}
loader:"pug-html-loader"
]
}
<template lang="pug"></template>
标签:npm,reules,Vue,cli,pug,loader,如何,html
来源: https://www.cnblogs.com/hq2020/p/15054326.html