Skip to content

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

License

Notifications You must be signed in to change notification settings

CheeseGrinder/stencil-sass-alias

Repository files navigation

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.