-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@import statements are not parsed #38
Comments
Hi @idzer0lis, Try to install latest package and build again. And a few test cases about typescript were added:https://github.com/differui/rollup-plugin-sass/blob/master/test/index.js#L225 |
@arthurkhlghatyan Can you post your rollup config file? |
I think the issue is that this plugin isn't treating |
You'll need to pass an importer to node-sass like: sass({
options: {
importer(path) {
return { file: path.replace(/^~/, 'node_modules/') };
}
}
}) |
Hi @tomtobac try to use full path as the import id or setup your resolve plugin(rollup-plugin-node-resolve) with: resolve({
extensions: ['.scss', '.sass'],
}) |
fixed by #53 |
rollup-config.js:
JS and CSS bundles are generated but where I have @import statements, the sass is not compiled into css.
colors.scss(which is imported in app.scss):
generated bundle.css(with no errors):
Are @import statements working?
If I'm missing something, pardon me.
The text was updated successfully, but these errors were encountered: