Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cheesegrinder/stencil-sass-alias

Small plugin made for stencilJS to have alias in your sass file
https://github.com/cheesegrinder/stencil-sass-alias

alias plugin sass scss stencil

Last synced: 8 days ago
JSON representation

Small plugin made for stencilJS to have alias in your sass file

Awesome Lists containing this project

README

        



stencil-logo


Stencil Sass Alias

A plugin for [StencilJS][stencil-site] to add aliasied path in SASS and SCSS files



GitHub License


GitHub License

---------

### Install

```bash
npm install @cheese-grinder/stencil-sass-alias --save-dev
```

### Usage

```ts
// stencil.config.ts

import { sassAlias } from '@cheese-grinder/stencil-sass-alias';
import { Config } from '@stencil/core';
import { sass } from '@stencil/sass';

export const config: Config = {
plugins: [
sass({
importer: [
sassAlias()
]
})
]
};
```

### Customization
The plugin takes one argument, which is a object with the following properties.

| property | default | optional |
| -------- | :-----: | :------: |
| path | `src` | `true` |
| alias | `@scss` | `true` |

### Contributing

Thanks for your interest in contributing!
Please take a moment to read up on our guidelines for [contributing][contributing].
Please note that this project is released with a [Contributor Code of Conduct][code-of-conduct]. By participating in this project you agree to abide by its terms.

[stencil-site]: https://stenciljs.com/
[contributing]: https://github.com/CheeseGrinder/stencil-sass-alias/blob/main/CONTRIBUTING.md
[code-of-conduct]: https://github.com/CheeseGrinder/stencil-sass-alias/blob/main/CODE_OF_CONDUCT.md