@bytegenius/vite-plugin-sass

0.1.0 • Public • Published

vite-plugin-sass

vite-plugin-sass is a Vite plugin designed to streamline the process of compiling Sass (SCSS/Sass) files to CSS in your Vite projects. It simplifies the integration of sass into your project, making it easier to work with stylesheets.

Disclaimer: This plugin utilizes the popular sass package for Sass compilation and ensures that only files with the .scss extension are transformed.

Installation

To use this plugin in your Vite project, follow these simple installation steps:

  1. Install the package using npm or yarn:

    npm install @bytegenius/vite-plugin-sass --save-dev

    or

    yarn add @bytegenius/vite-plugin-sass --dev
  2. In your Vite configuration file (usually named vite.config.js), import the vite-plugin-sass and add it to the plugins array:

    const sass = require('@bytegenius/vite-plugin-sass');
    
    module.exports = {
      plugins: [sass()],
    };

With these two simple steps, you're ready to harness the power of this plugin in your Vite project.

Usage

Once you've installed and configured the vite-plugin-sass, you can import your Sass files in your JavaScript or TypeScript code just like any other module:

import './styles.scss';

Vite will automatically take care of transforming your Sass code into CSS, making it readily available in your project.

Author

Nnamdi Michael Okpala


Enjoy using vite-plugin-sass to simplify your Sass compilation and enhance your Vite development experience!

Readme

Keywords

none

Package Sidebar

Install

npm i @bytegenius/vite-plugin-sass

Weekly Downloads

3

Version

0.1.0

License

ISC

Unpacked Size

3.67 kB

Total Files

4

Last publish

Collaborators

  • bytegenius