-
-
Save tolawho/4c64af75c12c0b9fce51faba2a356d4f to your computer and use it in GitHub Desktop.
Laravel Mix / Tailwind UI / PurgeCSS configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mix = require('laravel-mix'); | |
require('laravel-mix-tailwind'); | |
require('laravel-mix-purgecss'); | |
/* Moment.js bloat */ | |
const webpack = require('webpack'); | |
mix.webpackConfig({ | |
plugins: [ | |
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/) | |
] | |
}); | |
mix.js('resources/js/app.js', 'public/js') | |
.sass('resources/sass/app.scss', 'public/css') | |
.tailwind('tailwind.config.js') | |
.purgeCss({ | |
extractorPattern: /[\w-/.:]+(?<!:)/g | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment