Commit 37fe248
arnoson
feat: treat css as entry
BREAKING CHANGE: until now, a CSS file was always coupled to a JS
entry: `vite()->css('index.js')` and the JS entry would have to import
the CSS file. With this change, the CSS file is an entry itself and can
be loaded by its name: `vite()->css('index.css')`.
Note: for this to work the CSS file has to be added to
`rollupOptions.input` in the `vite.config.js`.1 parent 6551cc7 commit 37fe248
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
0 commit comments