Skip to content

Commit 89b916a

Browse files
author
许涛
committed
resolve issue #1366
1 parent 210fdf6 commit 89b916a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const emitHandle = (compilation, callback) => {
3232
if (/^(\.wxss)|(\.ttss)|(\.acss)|(\.css)$/.test(extname)) {
3333
relativePath = getRelativePath(relativePath)
3434
content = `@import "${relativePath}";\n${content}`
35-
} else {
35+
} else if (!(/^\.map$/.test(extname))) {
3636
content = `require("${relativePath}")\n${content}`
3737
}
3838
}

0 commit comments

Comments
 (0)