@cgi/sass-module@1.7.0
sass-module
Overview
The sass-module compiles SCSS files into CSS files for project integration. It handles the complete SCSS-to-CSS transformation process with support for development and production builds.
Core Responsibilities:
- SCSS file compilation to CSS output
- Source map generation for development builds
- Minification control based on environment settings
- Integration with automated build workflows
This module can operate independently or work alongside the build-manager for automated build workflows.
System Requirements
- Windows PC
- Node.js
- Deno runtime (version 2.4.3 or higher)
- npm
- Sass installed globally (
npm install -g sass)
Installation
deno add jsr:@cgi/sass-module
Usage
Module Execution
To compile SCSS files:
deno run -A build input-file=<path-to-scss> output-folder=<path-to-css-output>
CLI Flags Reference
Shared Flags:
| Flag | Default | Description |
|---|---|---|
--env |
none | Specifies target environment (must exist in project.json) |
--debug |
false |
Disables minification for easier debugging |
Module-Specific Flags:
| Flag | Default | Description |
|---|---|---|
input-file |
none | Source SCSS file path for compilation |
output-folder |
none | Target directory for compiled CSS output |
Output
The module generates compiled CSS files in the specified output directory. Source map files are created for development environments unless disabled by production settings (environment.<env>.production = true).
License
This module is provided without permission to copy, modify, or distribute the source code in any form. All rights are reserved by the author.
Add Package
deno add jsr:@cgi/sass-module
Import symbol
import * as sass_module from "@cgi/sass-module";
Import directly with a jsr specifier
import * as sass_module from "jsr:@cgi/sass-module";
Add Package
pnpm i jsr:@cgi/sass-module
pnpm dlx jsr add @cgi/sass-module
Import symbol
import * as sass_module from "@cgi/sass-module";
Add Package
yarn add jsr:@cgi/sass-module
yarn dlx jsr add @cgi/sass-module
Import symbol
import * as sass_module from "@cgi/sass-module";
Add Package
vlt install jsr:@cgi/sass-module
Import symbol
import * as sass_module from "@cgi/sass-module";
Add Package
npx jsr add @cgi/sass-module
Import symbol
import * as sass_module from "@cgi/sass-module";
Add Package
bunx jsr add @cgi/sass-module
Import symbol
import * as sass_module from "@cgi/sass-module";