Skip to content

CheeseGrinder/stencil-sass-alias

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.

About

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

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors 2

  •  
  •