Skip to content

Conversation

@sgratzl
Copy link

@sgratzl sgratzl commented Feb 3, 2021

based on thgh#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
Copy link
Author

sgratzl commented Feb 3, 2021

sorry wrong repo moved to thgh#31

@sgratzl sgratzl closed this Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants