1.0.5 • Published 8 months ago

rollup-plugin-sass-migrator v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

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,
    })
  ]
})
1.0.5

8 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago