# nuxt-resources-loader

> Nuxt module

Latest version **0.0.7** (published 2017-10-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install nuxt-resources-loader
pnpm add nuxt-resources-loader
yarn add nuxt-resources-loader
bun add nuxt-resources-loader
```

## 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.0.7 |
| Published | 2017-10-15 |
| First published | 2017-10-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Maintainers | anteriovieira |

## Links

- npm: https://www.npmjs.com/package/nuxt-resources-loader
- Repository: https://github.com/anteriovieira/nuxt-resources-loader
- Homepage: https://github.com/anteriovieira/nuxt-resources-loader#readme
- Issues: https://github.com/anteriovieira/nuxt-resources-loader/issues
- npm.io page: https://npm.io/package/nuxt-resources-loader

## Dependencies (1)

- [sass-resources-loader](https://npm.io/package/sass-resources-loader.md) ^1.3.1

## Recent versions

- 0.0.7 (latest) — 2017-10-15
- 0.0.6 — 2017-10-15
- 0.0.4 — 2017-10-15
- 0.0.3 — 2017-10-15
- 0.0.1 — 2017-10-15

## README

# nuxt-resources-loader

[![npm](https://img.shields.io/npm/v/nuxt-resources-loader.svg)](https://www.npmjs.com/package/nuxt-resources-loader)

## Install

```sh
npm i nuxt-resources-loader
# or 
yarn add nuxt-resources-loader
```

## Usage

```js
// nuxt.config.js
import {resolve} from 'path'

module.exports = {
  modules: [
    // Provide path to the file with resources
    ['nuxt-resources-loader', resolve(__.dirname, 'path/to/resources.scss')],

    // or array of paths
    ['nuxt-resources-loader', [
        resolve(__.dirname, 'path/to/first-resources.sass'),
        resolve(__.dirname, 'path/to/second-resources.styl', ['stylus', 'styl']),
    ]],

    // or the native options
    ['nuxt-resources-loader', {
        resources: resolve(__.dirname, 'path/to/resources.stylus')
    }],
  ]
}
```

### Glob pattern matching

You can specify glob patterns to match your all of your files in the same directory.

```js
// Specify a single path
resources: './path/to/resources/**/*.scss', // will match all files in folder and subdirectories
// or an array of paths
resources: [ './path/to/resources/**/*.scss', './path/to/another/**/*.scss' ]
```

> Note that sass-resources-loader will resolve your files in order. If you want your variables to be accessed across all of your mixins you should specify them in first place.

```js
resources: [ './path/to/variables/vars.scss', './path/to/mixins/**/*.scss' ]
```

[For more details see the official documentation](https://github.com/shakacode/sass-resources-loader#usage)

## License

[MIT](http://opensource.org/licenses/MIT)

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