1.0.3 • Published 1 year ago
@vable/nuxt.emotion v1.0.3
Features
- Server Side Rendering (SSR)
- Critical Path CSS with Hydration
- Hot Reloads (HMR)
- Style inlining
- Minification
- Dead Code Elimination
- Source Maps
- Contextual Class Names
Setup
IMPORTANT NOTE: This module requires new hooks that works with nuxt 2.5.0
or nuxt-edge
only.
- Add
@vable/nuxt.emotion
dependency to your project
yarn add @vable/nuxt.emotion # or npm install @vable/nuxt.emotion
- Add
@vable/nuxt.emotion
to themodules
section ofnuxt.config.js
export default {
modules: [
'@vable/nuxt.emotion',
]
}
Nuxt 2
Nuxt 2 is supported with @nuxtjs/emotion@0.1.0
, Documentation is on https://github.com/nuxt-community/emotion-module/tree/v0 and the code on the v0
branch.
Development
- Clone this repository
- Install dependencies using
yarn install
ornpm install
- Start development server using
npm run dev
License
Copyright (c) Nuxt Community