0.1.0 • Published 11 months ago

@phragon/extender-css v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

@phragon/extender-css

Adds the css 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-css

Usage

Add an extension method to phragon.config.ts

import type { BuilderI } from "phragon";

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

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

In typescript or javascript files:

import "./file.css"

Or module:

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