1.1.1 • Published 1 year ago

sass-dynamic-imports v1.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Sass Dynamic imports

The library is designed to import dynamically scss files in dynamic folders.

Install Sass

Sass library is required to use this package

npm i sass

Install library

npm i -g sass-dynamic-imports

Use watcher

dynamic-sass --watch path/file.scss:path/file.css

Use with concurrently

npm i concurrently

Add this scripts on your package.json "scripts" key:

 "scripts": {
  "dev:sass": "dynamic-sass --watch styles/index.scss:styles/index.css",
  "dev": "concurrently --kill-others \"next dev\" \"npm run dev:sass\"",
 }

Usage

in scss file:

  @import './[folder_name]/**/*.scss';

will watch all scss files on any folder on folder_name folder

  .class {
    color: env(VARIABLE)
  }

will use env Variable

  @minimify;

will minimify css file

1.1.1

1 year ago

1.1.0

1 year ago

1.0.1

1 year ago

0.1.0

1 year ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago