Skip to main content
Home

latest
It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
52%
Published
3 days ago (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.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@cgi/sass-module

Import symbol

import * as sass_module from "@cgi/sass-module";
or

Import directly with a jsr specifier

import * as sass_module from "jsr:@cgi/sass-module";

Add Package

pnpm i jsr:@cgi/sass-module
or (using pnpm 10.8 or older)
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
or (using Yarn 4.8 or older)
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";