A
A
Alexey2020-06-09 14:47:44
css
Alexey, 2020-06-09 14:47:44

Why doesn't webstorm compile scss?

Hello!
I checked everything, but ide refuses to compile scss. There are no errors, but the styles are not connected to the page either. Tell me what could be the matter?

5edf76d019937084621755.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
juxifo, 2020-06-10
@juxifo

Either import styles into js, ​​or point to the entrypath to styles and use mini-css-extract-plugin.

const MiniCssExtractPlugin = require('mini-css-extract-plugin');

module.exports = {
  plugins: [new MiniCssExtractPlugin()],
  module: {
    rules: [
      {
        test: /\.css$/i,
        use: [MiniCssExtractPlugin.loader, 'css-loader'],
      },
    ],
  },
};

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question