@phragon/extender-sass
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

@phragon/extender-sass

Adds the sass import to the PhragonJS project. Used only for the webpack builder.

❯ Install

# this is not necessary, once added to the configuration file, the dependencies are installed automatically
$ npm install --save @phragon/extender-sass

Add an extension method to phragon.config.ts
You must use sass with the css extender and after the css extender!

import type { BuilderI } from "phragon";

export default async function config(builder: BuilderI) {
	builder
		// extender
		.extender("css")
		.extender("sass")

		// config
		.phragon
		.lexicon("en")
		.render("react", false)
		.publicPath("./public");
}

In typescript or javascript files:

import "./file.scss"

Or module:

import classes from "./file.component.scss"

Readme

Keywords

none

Package Sidebar

Install

npm i @phragon/extender-sass

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

12.5 kB

Total Files

16

Last publish

Collaborators

  • websoftlab