Skip to content

Zero-config Laravel Mix extension that enables Emotion styled components.

Notifications You must be signed in to change notification settings

kellymears/laravel-mix-emotion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

laravel-mix-emotion

Zero-config Laravel Mix extension that enables Emotion styled components.

Installation

  1. yarn add -D laravel-mix-emotion

  2. Add require('laravel-mix-emotion') to your webpack.mix.js config file. Initialize using mix.emotion().

Options

laravel-mix-emotion takes a single (optional) config param passed when initializing the extension: emotionFormat. This allows you to specify formatting instructions for Emotion generated classnames.

mix.emotion({
  emotionFormat: '[local]',
})

About

Zero-config Laravel Mix extension that enables Emotion styled components.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published