-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
It seems the plugin is incompatible with css preprocessors to a degree.
I am able to import scss in files just fine.
import style from './button.scss';
resolves to a string as in intended.
However, just adding this plugin has now broken global styling.
STEPS TO REPRODUCE:
yarn add parcel-plugin-css-to-string
index.html:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title Parcel Starter</title>
<link rel="stylesheet" type="text/css" href="style/style.scss">
</head>
<body>
<h1>Hello World</h1>
</body>
</html>
style.scss
body {
font-family: sans-serif;
font-size: 16px;
}
Styling included with link tag fails to compile with parcel
and parcel build
. Otherwise, plugin works as prescribed.
RTK
Metadata
Metadata
Assignees
Labels
No labels