Skip to content

Commit

Permalink
fix(webpack): escape backslash in css (#3256)
Browse files Browse the repository at this point in the history
  • Loading branch information
chu121su12 committed Oct 23, 2023
1 parent 5d0a295 commit d7549e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webpack/src/index.ts
Expand Up @@ -118,7 +118,7 @@ export default function WebpackPlugin<Theme extends object>(
: (result.getLayer(layer) || '')

if (!quote)
return css
return css.replaceAll(/\\/g, '\\\\\\\\')

// the css is in a js file, escaping
let escaped = JSON.stringify(css).slice(1, -1)
Expand Down

0 comments on commit d7549e2

Please sign in to comment.