mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-05 15:59:29 +08:00
Followup to 087e8e4bdb
- Fixes the variable-prefixer so it doesn't explode when the input is
unparseable
- Add URL polyfills so that postcss can print its errors properly
- Catch postcss errors in the same way as sass errors
7 lines
158 B
JavaScript
7 lines
158 B
JavaScript
export function pathToFileURL(path) {
|
|
return new URL(path, "file://").toString();
|
|
}
|
|
|
|
export function fileURLToPath(url) {
|
|
return new URL(url).pathname;
|
|
}
|