We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b460b67 commit 0a2d9c4Copy full SHA for 0a2d9c4
packages/@vue/cli-service/lib/config/base.js
@@ -130,10 +130,21 @@ module.exports = (api, options) => {
130
131
webpackConfig.module
132
.rule('pug')
133
- .test(/\.pug$/)
134
- .use('pug-plain-loader')
135
- .loader('pug-plain-loader')
136
- .end()
+ .test(/\.pug$/)
+ .oneOf('pug-vue')
+ .resourceQuery(/vue/)
+ .use('pug-plain-loader')
137
+ .loader('pug-plain-loader')
138
+ .end()
139
140
+ .oneOf('pug-template')
141
+ .use('raw')
142
+ .loader('raw-loader')
143
144
+ .use('pug-plain')
145
146
147
148
149
// shims
150
0 commit comments