Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stencil and Sass file

Tags:

stenciljs

I am trying to port a React component to Stencil.

The component .scss file has an @import for another A.scss file. That A.scss file @import the bootstrap-sass/assets/stylesheet/bootstrap/_variables and @import another B.scss file.

Can Stencil handle that or do I need to merge everything in one file?

like image 845
David Avatar asked Oct 29 '25 11:10

David


1 Answers

You can import other Sass files; you don't need to merge everything to one single file.

You can keep using Sass as you are using it with React. Just keep in mind that to be able to use Sass with Stencil, you have to install the Sass plugin and add the plugin to the plugins array in your stencil.config.js file.

For more information, check the Sass documentation on the Stencil website.

like image 146
ncardeli Avatar answered Nov 01 '25 12:11

ncardeli



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!