-
Notifications
You must be signed in to change notification settings - Fork 33
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
Error:r Unexpected character '@' for import statements #68
Comments
I think rollup-plugin-sass wants you to use Js to do all your imports. I.e. you don't do imports in your scss and you don't have a main scss file. Instead you have a main JS file for just styles, i.e. "style.js" and you do it like this:
etc Now if you want to do imports in your SCSS files you can override rollup-plugin-sass's runtime with the standard node-sass runtime. Just install node-sass
And then import it in your config and set the runtime options (and can also set include paths here);
I'm actually using gulp 4 with es6 via gulpfile.babel.js and gulp-better-rollup, so my app build file looks like this:
And my main gulpfile.babel.js file looks like this:
|
Marking as "closed" due to inactivity. For posterity: Sass imports currently work as expected (verified as of rollup-plugin-sass 1.2.2): some-sass-file.scss: @import "some/sass/module/here" rollup.config.js
|
I'm trying to compile *.vue files with scss style tags, but I can't get scss/sass compilation to work.
Part of my rollup config:
The error message I get:
The text was updated successfully, but these errors were encountered: