plugin-sass-ignore-warning
v6.1.1
Published
This plugin is used to shield sass warnings generated by the packaging tool during compilation.
Downloads
281
Maintainers
Readme
plugin-sass-ignore-warning
This plugin is used to shield warnings generated by the packaging tool during compilation. It can be used in webpack, rsbuild, rspack packaging environment.
install
npm i plugin-sass-ignore-warning
or
yarn add plugin-sass-ignore-warning
or
pnpm add plugin-sass-ignore-warning
usage
import { pluginSassIgnoreWarnings } from 'plugin-sass-ignore-warning'
export default {
plugins: [
pluginSassIgnoreWarnings({
resourceRegExp: /^\.(scss|sass|css)$/,
contextRegExp: '',
warningNames: ['ModuleWarning'],
}),
],
}