T
T
Tipylja2019-05-03 12:37:04
Sass
Tipylja, 2019-05-03 12:37:04

How to import SASS syntax into PostCSS?

Hello. I have a build using webpack + postcss. And it works fine with SCSS syntax
Here is a part of the code from the postcss settings

module.exports = {
  syntax: "postcss-scss",
  parser: 'postcss-scss',
  plugins: [
    require("postcss-easy-import")({
      extensions: ".pcss"
    }),

But I want to switch to SASS syntax, I change the settings to postcss-sAss. And everything works as it did, the sass syntax compiles to css, but the import of files stops working, that is, the postcss-easy-import module does not want to include files with SASS syntax, but includes the same files without problems in the SCSS syntax. I have returned to this question several times, but I still can't find a solution that would work with sass syntax.
Perhaps someone can help with this!

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