@nuxtjs/emotion
@nuxtjs/emotion
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
- Add
@nuxtjs/emotiondependency to your project
yarn add @nuxtjs/emotion # or npm install @nuxtjs/emotion
- Add
@nuxtjs/emotionto themodulessection ofnuxt.config.js
export default {
modules: [
'@nuxtjs/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 installornpm install - Start development server using
npm run dev
License
Copyright (c) Nuxt Community
Related Packages
@nuxtjs/sitemap
Powerfully flexible XML Sitemaps that integrate seamlessly, for Nuxt.
10,334,110
441
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.0.2 | ^3.0 | MIT | |
| 1.0.1 | ^3.0 | MIT | |
| 1.0.0 | ^3.0 | MIT | |
| 0.1.0 | MIT | ||
| 0.0.1 | MIT | ||
| 0.0.0 | MIT |