A NuxtJS module to use BEM directive with SSR.
Based on @verstaerker/vue-bem bem directive.
- Add the
nuxt-bem-moduledependency withyarnornpmto your project (yarn add nuxt-bem-moduleornpm i nuxt-bem-module) - Add
nuxt-bem-moduleto themodulessection ofnuxt.config.js - Configure it:
{
modules: [
// Simple usage
'nuxt-bem-module',
// OR With options
['nuxt-bem-module', { /* module options, same as for vue-bem */ }]
]
}- Clone this repository
- Install dependencies using
yarn installornpm install - Start development server using
npm run dev
Copyright (c) Vlad Barcelo