C
C
chelkaz2017-06-26 17:27:14
Node.js
chelkaz, 2017-06-26 17:27:14

Vue..JS [nuxtjs] and SCSS. node-sass or sass-loader?

The documentation of the Nuxt.JS framework from VUE does not say a damn thing (
An example of custom styles and compiling sass to css is shown https://ru.nuxtjs.org/examples/global-css/

"dependencies": {
    "nuxt": "^0.10.0",
    "node-sass": "^4.5.1",
    "sass-loader": "^6.0.3"
  },

As I see here, two packages node-sass and sass-loader are used for this. But after looking at their pages, I saw that both of them seem to compile sass to css. So why are there two packages in the example in the documentation? If they perform the same function, or am I misunderstanding something?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2017-06-26
@chelkaz

Node sass is for npm and sass-loader is a webpack loader

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question