Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Path resolvers

Raimondo Mancino edited this page May 23, 2022 · 2 revisions

This plugin supports three kinds of resolvers:

  • Bundle
  • Inline
  • File

Bundle Resolver

This is the default resolver. It will build SASS sources from the provided path and will use esbuild's css loader; a .css file will be generated which contains all the styles.

Inline resolver

import style from 'inline:./style.sass';

This will put the compiled output of SASS into style as a string. Uses esbuild's text loader.

File resolver

import style from 'file:./style.sass';

This will build the sass source and use esbuild's file loader; an external .css file will be generated for every file: paths. In this case, style is a string which represents the path to the css file.

Clone this wiki locally