bun-css-loader
v1.2.0
Published
Bun plugin for loading style files
Downloads
2,271
Maintainers
Readme
bun i bun-css-loader
About
This plugin integrates all CSS and SCSS files imported into JS source files directly into the DOM's <head>
element within <style>
stags.
Additionally, it processes and resolves @import
statements within the CSS files themselves.
How-To
import cssLoader from 'bun-css-loader';
await Bun.build({
// ...
plugins: [
// ...
cssLoader(),
],
});
License
Distributed under the MIT License. See MIT License for more information.