Skip to content

Commit d42c52b

Browse files
wilkinsonaphilwebb
authored andcommitted
Retain quotes on relative URLs in CSS
cssnano's normalizeUrl removes quotes from relative URLs, underminining the fix for #11 that was made in 8aab4d7. There's no configuration option that I can see on normalizeUrl to disable the removal of quotes, so this commit disables normalizeUrl entirely. See gh-19
1 parent cfb194c commit d42c52b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

postcss.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ module.exports = {
44
plugins: {
55
"postcss-import": {},
66
cssnano: {
7-
preset: "default",
7+
preset: ["default", {
8+
normalizeUrl: false,
9+
}]
810
},
911
"autoprefixer": {}
1012
},

0 commit comments

Comments
 (0)