其他分享
首页 > 其他分享> > Pug的使用

Pug的使用

作者:互联网

1.vue中安装pug

原文章:https://www.aiprose.com/blog/126

npm i -D pug pug-html-loader pug-plain-loader  或 yarn add pug pug-html-loader pug-plain-loader

 

配置

// vue.config.js
module.exports = {
    chainWebpack: config => {
      config.module.rule('pug')
        .test(/\.pug$/)
        .use('pug-html-loader')
        .loader('pug-html-loader')
        .end()
  }
}

2 屏蔽 

//- el-button

标签:pug,vue,Pug,module,loader,html,使用,config
来源: https://www.cnblogs.com/lxq3280/p/16172775.html