B
B
be_a_man2021-02-17 16:26:53
Pug
be_a_man, 2021-02-17 16:26:53

Is it possible to import SASS into PUG webpack?

I want to use components in the layout, but it is not convenient to import SASS files for each component separately, what options are there to do this with the 1st file?

Structure:

|- components
  |- breadcrumbs
     |- breadcrumbs.pug
     |- breadcrumbs.sass
|- index.pug


index.pug
include .components/breadcrumbs.pug

breadcrumbs.pug
include ./breadcrumbs.sass // <- не работает

nav.breadcrumbs
  ul
     ....

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question