Skip to content

Commit 4bbf6d6

Browse files
zhaoyiyiegoist
authored andcommitted
fix: add test rule for css files (#26)
1 parent 1bd5465 commit 4bbf6d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nuxt.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ module.exports = function(options) {
1414
const FILE_RE = /\.(vue|js|ts|svg)$/
1515
config.module.rules.push(
1616
Object.assign({}, imageRule, {
17+
test: /\.svg$/,
1718
issuer: file => !FILE_RE.test(file)
1819
})
1920
)

0 commit comments

Comments
 (0)