A NuxtJS module to use BEM directive with SSR.
Based on @verstaerker/vue-bem bem directive.
- Add the
nuxt-bem-module
dependency withyarn
ornpm
to your project (yarn add nuxt-bem-module
ornpm i nuxt-bem-module
) - Add
nuxt-bem-module
to themodules
section 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 install
ornpm install
- Start development server using
npm run dev
Copyright (c) Vlad Barcelo