@phragon/extender-sass
v0.1.0
Published
Adds the `sass` import to the PhragonJS project. Used only for the webpack builder.
Readme
@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-sassAdd an extension method to
phragon.config.ts
You must usesasswith thecssextender and after thecssextender!
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"