Commit a56d9a91 authored by Joe Haddad's avatar Joe Haddad Committed by JJ Kasper

Do Not Run File Loader on Server (#9843)

parent 6b50b132
......@@ -230,6 +230,7 @@ export const css = curry(async function css(
})
)
if (ctx.isClient) {
// Automatically transform references to files (i.e. url()) into URLs
// e.g. url(./logo.svg)
fns.push(
......@@ -253,6 +254,7 @@ export const css = curry(async function css(
],
})
)
}
const fn = pipe(...fns)
return fn(config)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment