Created
March 17, 2020 03:43
-
-
Save epixian/f8b8de85d9fe8e9d45b9c134b200f386 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