Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 692 Bytes

File metadata and controls

26 lines (21 loc) · 692 Bytes

Export Tailwind Config to JSON

This Laravel Mix plugin generates a JSON file containing your tailwind configuration.

Note: I've stumbled upon literally the same package but as mine added some options, I've decided to publish it anyway. You can find the package here

Installation

npm install --save-dev mix-export-tailwind-config

or

yarn add -D mix-export-tailwind-config

Usage

// webpack.config.js

require('mix-export-tailwind-config');

mix
    .exportTailwindConfig( 
       './tailwind.config.js',
        './storage/tailwind.config.json'
    )