
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
vite-plugin-sass
Advanced tools
DISCLAIMER: This plugin uses the sass package to compile Sass files to CSS, and it checks whether a file has the .scss extension before attempting to transform it. If the file is a Sass file, the plugin compiles the Sass code to CSS using sass.render() and returns the result.
To use this plugin in your Vite project, you can install it using npm or yarn:
npm install vite-plugin-sass --save-dev
Then, in your vite.config.js file, you can import the plugin and add it to the plugins array:
const vitePluginSass = require('vite-plugin-sass');
module.exports = {
plugins: [vitePluginSass()],
};
With this plugin installed and configured, you can import Sass files in your JavaScript or TypeScript code just like you would any other module:
import './styles.scss';
And Vite will automatically transform the Sass code to CSS and include it in your project.
FAQs
A simple vite plugin to use StylishCSS within your own vite project
The npm package vite-plugin-sass receives a total of 6,484 weekly downloads. As such, vite-plugin-sass popularity was classified as popular.
We found that vite-plugin-sass demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.