Skip to content

Amazing package for sass to write bem classes, with namespaces and more advanced features.

License

Notifications You must be signed in to change notification settings

savoygu/sass-bem-next

 
 

Repository files navigation

Version Version

sass-bem-next

Changes

  • Use dart-sass instead of node-sass
  • Use sass builtin modules instead of global functions
  • Fixed @mixin parse warning
  • Fixed @function splice recursive error

Install

npm i sass-bem-next --save-dev

Vue CLI

v5.x

// vue.config.js
module.exports = {
  css: {
    loaderOptions: {
      scss: {
        additionalData: `@import "sass-bem-next";`
      }
    }
  }
}

v4.x

module.exports = {
  css: {
    loaderOptions: {
      scss: {
        prependData: `@import "sass-bem-next";`,
        sassOptions: {
          includePaths: ['node_modules']
        }
      }
    }
  }
}

Vite

// vite.config.ts
import { defineConfig } from 'vite'

export default defineConfig({
  css: {
    preprocessorOptions: {
      scss: {
        additionalData: `@import "sass-bem-next";`
      }
    }
  }
})

Usage

sass-bem v2.6.5

License

The sass-bem-next package is also open-sourced software licensed under the MIT license.

About

Amazing package for sass to write bem classes, with namespaces and more advanced features.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • SCSS 88.0%
  • CSS 9.4%
  • JavaScript 2.6%