Package Exports
- laravel-mix-emotion
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (laravel-mix-emotion) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
laravel-mix-emotion
Zero-config Laravel Mix extension that enables Emotion styled components.
Installation
yarn add -D laravel-mix-emotionAdd
require('laravel-mix-emotion')to yourwebpack.mix.jsconfig file. Initialize usingmix.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]',
})