Skip to content

vladbarcelo/bem-module

Repository files navigation

bem-module

npm version npm downloads Dependencies Standard JS

A NuxtJS module to use BEM directive with SSR.

Based on @verstaerker/vue-bem bem directive.

Setup

  1. Add the nuxt-bem-module dependency with yarn or npm to your project (yarn add nuxt-bem-module or npm i nuxt-bem-module)
  2. Add nuxt-bem-module to the modules section of nuxt.config.js
  3. Configure it:
{
  modules: [
    // Simple usage
    'nuxt-bem-module',

    // OR With options
    ['nuxt-bem-module', { /* module options, same as for vue-bem */ }]
  ]
}

Development

  1. Clone this repository
  2. Install dependencies using yarn install or npm install
  3. Start development server using npm run dev

License

MIT License

Copyright (c) Vlad Barcelo

About

A NuxtJS module to use BEM directive with SSR.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors