File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
const { attrsToQuery } = require ( './utils' )
2
2
const hotReloadAPIPath = JSON . stringify ( require . resolve ( 'vue-hot-reload-api' ) )
3
- const allWhitespaceRE = / ^ \s + $ /
3
+ const nonWhitespaceRE = / \S + /
4
4
5
5
module . exports = function genStyleInjectionCode (
6
6
loaderContext ,
@@ -71,7 +71,7 @@ module.exports = function genStyleInjectionCode (
71
71
}
72
72
73
73
// filter out empty styles (with no `src` specified or only contains whitespaces)
74
- styles = styles . filter ( style => style . src || ! allWhitespaceRE . test ( style . content ) )
74
+ styles = styles . filter ( style => style . src || nonWhitespaceRE . test ( style . content ) )
75
75
// explicit injection is needed in SSR (for critical CSS collection)
76
76
// or in Shadow Mode (for injection into shadow root)
77
77
// In these modes, vue-style-loader exports objects with the __inject__
You can’t perform that action at this time.
0 commit comments