Skip to content

Commit 07738e3

Browse files
authored
Merge branch 'master' into master
2 parents 43921b3 + bc6459f commit 07738e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function moduleify(css, inject) {
4141
if (inject === 'base64') {
4242
exp = 'require("' + path.basename(path.dirname(__dirname)) + '").byUrl("' + base64(css) + '")'
4343
} else if (inject) {
44-
exp = "require('browserify-postcss')('" + css.replace(/'/gm, "\\'").replace(/[\r\n]+/gm, ' ') + "')"
44+
exp = "require('browserify-postcss')('" + css.replace(/\\/g, '\\\\').replace(/'/gm, "\\'").replace(/[\r\n]+/gm, ' ') + "')"
4545
} else {
4646
exp = JSON.stringify(css)
4747
}

0 commit comments

Comments
 (0)