Introduction: pug is a robust, flexible, feature-rich template engine
1. Install package npm
npm i -D pug pug-html-loader pug-plain-loader
2.build/webpack.base.conf.js modify the configuration
test:/\.pug$/,
loader: "pug-html-loader"
}