rollup-plugin-sass-migrator
v1.0.5
Published
Migrate SASS files as part of a Rollup or Vite toolchain
Downloads
1,255
Maintainers
Readme
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,
})
]
})