# grunt-sass-multi-import

> Combine multiple .scss files into one dynamically maintained .scss file.

Latest version **0.1.1** (published 2015-08-06) · 0 weekly downloads

## Install

```sh
npm install grunt-sass-multi-import
pnpm add grunt-sass-multi-import
yarn add grunt-sass-multi-import
bun add grunt-sass-multi-import
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2015-08-06 |
| First published | 2015-07-22 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| Author | Jandalf |
| Maintainers | jandalf |
| Keywords | gruntplugin, compass, import, multiple, sass, scss |

## Links

- npm: https://www.npmjs.com/package/grunt-sass-multi-import
- Repository: https://github.com/Jandalf/grunt-sass-multi-import
- Issues: https://github.com/Jandalf/grunt-sass-multi-import/issues
- npm.io page: https://npm.io/package/grunt-sass-multi-import

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^3.10.0

## Recent versions

- 0.1.1 (latest) — 2015-08-06
- 0.1.0 — 2015-07-22

## README

# grunt-sass-multi-import

> Combine multiple .scss files into one dynamically maintained .scss file.

## Getting Started
This plugin requires Grunt `~0.4.1`

If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

```shell
npm install grunt-sass-multi-import --save-dev
```

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

```js
grunt.loadNpmTasks('grunt-sass-multi-import');
```

## The "sass-multi-import" task

### Overview
In your project's Gruntfile, add a section named `sass-multi-import` to the data object passed into `grunt.initConfig()`.

**Important:** When you execute your tasks, this task needs to be executed *before* your Sass task, or whatever task compiles your `*.scss` files.

```js
grunt.initConfig({
  'sass-multi-import': {
    your_target: {
      // Target-specific file lists and/or options go here.
      files: [{
        src: ['src/styles/partials/**/*'],
        dest: 'src/styles/_partials.scss'
      }]
    }
  }
})
```

### Options

#### options.quotes
Type: `String`
Default value: `double`

This plugin writes `@import` statements, which use quotes. By default, they're double quotes, but maybe you want to use single quotes. Set this to 'single'.

### Usage Examples

#### Default Options
Find any _*.scss files in your partials folder and subfolders and create a _partials.scss with @imports to them.

```js
grunt.initConfig({
  'sass-multi-import': {
    files: [{
      src: ['src/styles/partials/**/*'],
      dest: 'src/styles/_partials.scss'
    }]
  },
})
```

## Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).

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