Skip to content

Latest commit

 

History

History
72 lines (54 loc) · 1.93 KB

README.md

File metadata and controls

72 lines (54 loc) · 1.93 KB

Stencil Sass Alias

A plugin for StencilJS to add aliasied path in SASS and SCSS files


Install

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

Usage

// 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. Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.