DEV Community

Matías López Díaz
Matías López Díaz

Posted on

5 2

How to use dart-sass with Vue

How to use

If you got here is because you can't find a solution how use @use or @include to you Vue app.

First install sass:

npm i sass --save-dev

Create file or add this code to vue.config.js:

/* vue.config.js */
module.exports = {
  css: {
    loaderOptions: {
      sass: {
        implementation: require('sass')
      }
    }
  }
}

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay