# sass-dynamic-imports

> import dynamically sass files

Latest version **1.1.1** (published 2024-01-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install sass-dynamic-imports
pnpm add sass-dynamic-imports
yarn add sass-dynamic-imports
bun add sass-dynamic-imports
```

Provides the command `dynamic-sass`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2024-01-08 |
| First published | 2023-12-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10.0.0 |
| Dependencies | 11 |
| Unpacked size | 14.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | CARDIET Thomas |
| Maintainers | traxx, mp-seven |
| Keywords | front-end, import, extension, glob, scss, sass |

## Links

- npm: https://www.npmjs.com/package/sass-dynamic-imports
- Repository: https://github.com/ThomasCardiet/sass-dynamic-imports
- Homepage: https://github.com/ThomasCardiet/sass-dynamic-imports#readme
- Issues: https://github.com/ThomasCardiet/sass-dynamic-imports/issues
- npm.io page: https://npm.io/package/sass-dynamic-imports

## Dependencies (11)

- [glob](https://npm.io/package/glob.md) ^10.3.10
- [pify](https://npm.io/package/pify.md) ^3.0.0
- [sass](https://npm.io/package/sass.md) ^1.69.5
- [yargs](https://npm.io/package/yargs.md) ^17.7.2
- [dotenv](https://npm.io/package/dotenv.md) ^16.3.1
- [globby](https://npm.io/package/globby.md) ^6.1.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [is-glob](https://npm.io/package/is-glob.md) ^4.0.0
- [resolve](https://npm.io/package/resolve.md) ^1.1.7
- [chokidar](https://npm.io/package/chokidar.md) ^3.5.3
- [object-assign](https://npm.io/package/object-assign.md) ^4.0.1

## Recent versions

- 1.1.1 (latest) — 2024-01-08
- 1.1.0 — 2024-01-08
- 1.0.1 — 2024-01-08
- 0.1.0 — 2024-01-08
- 0.0.11 — 2024-01-08
- 0.0.10 — 2024-01-08
- 0.0.9 — 2024-01-08
- 0.0.8 — 2024-01-08
- 0.0.7 — 2024-01-08
- 0.0.6 — 2023-12-08
- 0.0.5 — 2023-12-08
- 0.0.4 — 2023-12-08
- 0.0.3 — 2023-12-08
- 0.0.2 — 2023-12-08
- 0.0.1 — 2023-12-08

## README

# 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

```bash
npm i sass
```

## Install library

```bash
npm i -g sass-dynamic-imports
```

## Use watcher

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

## Use with concurrently

```bash
npm i concurrently
```

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

```json
 "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:

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

will watch all scss files on any folder on [folder_name] folder

```scss
  .class {
    color: env(VARIABLE)
  }
```

will use env Variable

```scss
  @minimify;
```

will minimify css file

---
_Source: https://npm.io/package/sass-dynamic-imports · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
