We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
可以使用pug
安装pug和pug-plain-loader,编译后被直接编译成了字符串,完全没有效果
直接在webpack配置中引入pug-plain-loader即可
The text was updated successfully, but these errors were encountered:
我使用的是 taro 3.6,具体说一下配置方式,希望让同样使用 pug 的同学少走一些弯路。
pug
pug-plain-loader
/config/index.js
webpackChain(chain) { // ... chain.merge({ module: { rule: { pugloader: { test: /\.pug$/, use: [ { loader: 'pug-plain-loader', options: {}, }, ], }, }, }, }) },
Sorry, something went wrong.
No branches or pull requests
这个特性解决了什么问题?
可以使用pug
这个 API 长什么样?
安装pug和pug-plain-loader,编译后被直接编译成了字符串,完全没有效果
The text was updated successfully, but these errors were encountered: