rollup-plugin-css-only icon indicating copy to clipboard operation
rollup-plugin-css-only copied to clipboard

CSS imports

Open sgratzl opened this issue 4 years ago • 1 comments

based on #29

parses @import './test.css' lines in CSS files and adds them as imports within rollup,

e.g.,

@import './test.css';
@import '~test_module/test.css';
.root {
  color: red;
}

will create the following intermediate JS module

import './test.css';
import 'test_module/test.css'; // note the ~ was removed similar how css-loader is handling imports
export default '';

Thus, triggers import the imported files during bundling.

sgratzl avatar Feb 03 '21 10:02 sgratzl

Can you further discuss this with @jerekshoe and merge it into the v4 branch?

thgh avatar Feb 03 '21 13:02 thgh