Skip to content

Commit

Permalink
Merge branch 'main' of github.com:umbopepato/rollup-plugin-postcss-lit
Browse files Browse the repository at this point in the history
  • Loading branch information
umbopepato committed Jun 21, 2023
2 parents 0c05650 + 5ce17a6 commit cc82f4c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,14 @@ export default {
postcssLit(),
],
};


// my-component.js/ts
import myStyles from './styles.css?inline';
```

> ⚠️ Use the `?inline` suffix to prevent Vite from adding the styles to the CSS bundle as well
## Options

```javascript
Expand Down Expand Up @@ -179,8 +185,6 @@ export default {
};
```

> ℹ️ This does not apply to Vite, see [#40](https://github.com/umbopepato/rollup-plugin-postcss-lit/issues/40).
## When should I use it?

This plugin is meant to be used with [`rollup-plugin-postcss`](https://github.com/egoist/rollup-plugin-postcss).
Expand Down

0 comments on commit cc82f4c

Please sign in to comment.