Nuxt 3 plugin for Emotion.js
npm install @vable/nuxt.emotion
- Server Side Rendering (SSR)
- Critical Path CSS with Hydration
- Hot Reloads (HMR)
- Style inlining
- Minification
- Dead Code Elimination
- Source Maps
- Contextual Class Names
IMPORTANT NOTE: This module requires new hooks that works with nuxt 2.5.0 or nuxt-edge only.
1. Add @vable/nuxt.emotion dependency to your project
``bash`
yarn add @vable/nuxt.emotion # or npm install @vable/nuxt.emotion
2. Add @vable/nuxt.emotion to the modules section of nuxt.config.js
`js`
export default {
modules: [
'@vable/nuxt.emotion',
]
}
, 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 or npm install
- Start development server using npm run dev`Copyright (c) Nuxt Community