Skip to content

redwebcreation/laravel-mix-export-tailwind-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'
    )