Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kellymears/laravel-mix-emotion
Zero-config Laravel Mix extension that enables Emotion styled components.
https://github.com/kellymears/laravel-mix-emotion
Last synced: about 2 months ago
JSON representation
Zero-config Laravel Mix extension that enables Emotion styled components.
- Host: GitHub
- URL: https://github.com/kellymears/laravel-mix-emotion
- Owner: kellymears
- Created: 2019-05-20T20:16:24.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-20T20:16:39.000Z (over 5 years ago)
- Last Synced: 2024-07-05T21:16:13.040Z (3 months ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.
```js
mix.emotion({
emotionFormat: '[local]',
})
```