NX Sass is a plugin NX that allows you to create decoupled libraries based on SASS for your Frontend projects in monorepo projects.
- Buidling: Provides an executor to compile your Sass code with different configuration options.
- Live Update: Develop your Sass based library with Live Update to automate compilation at every change.
- Linting: Lint your Sass files with Stylelint to follow best practices.
This module is based on Nx, you will need to set up an Nx workspace before you can use nx-sass.
npx create-nx-workspace@latest
npm install -D @gitopslovers/nx-sass
nx g @gitopslovers/nx-sass:lib <sass-lib-name>
- Run
nx build <sass-lib-name>
to build your library.
- Run
nx serve <sass-lib-name>
to serve your library for development.
- Run
nx lint <sass-app-name>
to lint your library.
If you're having any problem, please raise an issue on GitHub and we'll be happy to help.
- Follow this instructions in order to learn how to contribute to this project.
This project is inspired by several contributions made by the NX community, especially the nx-stylelint project.
Author: GitOps Lovers ❤️