JSPM

laravel-mix-emotion

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q36585F
  • License MIT

Laravel mix extension that configures environment for Emotion.

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

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