laravel-mix-emotion

0.1.0 • Public • Published

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]',
})

Package Sidebar

Install

npm i laravel-mix-emotion

Weekly Downloads

12

Version

0.1.0

License

MIT

Unpacked Size

1.81 kB

Total Files

3

Last publish

Collaborators

  • kellymears