-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
期望可以设置htmlWebpackPlugin中的模板为pug模板 #2601
New issue
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
Comments
@sodatea you couldn't close this issues, because the last issues you didn't resolve and vue-cli 3.0 still does't support pug template |
// vue.config.js
module.exports = {
pages: {
app: {
entry: resolve('./src/main.js'),
template: 'public/index.pug',
filename: 'index.html',
title: 'vuecli3.0'
}
},
chainWebpack: config =>
config.module
.rule('pug')
.test(/\.pug$/)
.uses
.delete('pug-plain-loader')
.end()
.use('pug-loader')
.loader('pug-loader')
} |
Look at the file 190 // resolve page index template The var |
It will be false when using webpack inline loader syntax like But with the above-mentioned config you should have been able to use |
@sodatea what's the difference between |
|
What problem does this feature solve?
目前的index.html和多页配置的扩展名.html都是写死的,这样不方便迁移项目。因为项目初期都是用pug开发
What does the proposed API look like?
可以增加一个设置模板扩展名的参数。比如:.ext或者.extname之类的
The text was updated successfully, but these errors were encountered: