🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

rollup-plugin-sass-migrator

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-sass-migrator

Migrate SASS files as part of a Rollup or Vite toolchain

latest
npmnpm
Version
1.0.5
Version published
Weekly downloads
192
-9.86%
Maintainers
1
Weekly downloads
 
Created
Source

This plugin was developed to migrate SASS files during development and build.

It was originally developed to remove the SASS deprecation warnings emitted when building a Quasar project.

This plugin has a peer dependency on the sass-migrator module. See https://sass-lang.com/documentation/cli/migrator/

Install

yarn add -D rollup-plugin-sass-migrator sass-migrator
npm install -D rollup-plugin-sass-migrator sass-migrator

Usage

quasar.config.js (if using Quasar with Vite)

{
  build: {
      vitePlugins: [
        require('rollup-plugin-sass-migrator').sassMigratorQuasar()
      ]
  }
}

vite.config.js (if using Quasar manually with Vite)

import { sassMigratorQuasar } from 'rollup-plugin-sass-migrator';

export default defineConfig({
  plugins: [
    sassMigratorQuasar()
  ]
})

vite.config.js (with options)

import { sassMigrator } from 'rollup-plugin-sass-migrator';

export default defineConfig({
  plugins: [
    sassMigrator({
      indexPath: 'node_modules/quasar/src/css/index.sass',  // or another SASS file
      debug: false,
      dryRun: false,
    })
  ]
})

Keywords

sass

FAQs

Package last updated on 23 Sep 2023

Did you know?

Socket

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.

Install

Related posts