We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
sideEffects: true
1 parent e41ef41 commit 17a0c37Copy full SHA for 17a0c37
packages/@vue/cli-service/lib/config/base.js
@@ -144,6 +144,13 @@ module.exports = (api, options) => {
144
}])
145
}
146
147
+ // https://github.com/vuejs/vue-loader/issues/1435#issuecomment-869074949
148
+ webpackConfig.module
149
+ .rule('vue-style')
150
+ .test(/\.vue$/)
151
+ .resourceQuery(/type=style/)
152
+ .sideEffects(true)
153
+
154
// Other common pre-processors ---------------------------------------------
155
const maybeResolve = name => {
156
try {
0 commit comments