Skip to content

Commit

Permalink
depend on tailwindcss 1.4, which brings built-in purgecss support
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldyrynda committed Apr 30, 2020
1 parent 7af42a9 commit 7e83fe6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/TailwindCssPreset.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ protected static function updatePackageArray(array $packages)
{
return array_merge([
'laravel-mix' => '^5.0.1',
'laravel-mix-purgecss' => '^4.1',
'laravel-mix-tailwind' => '^0.1.0',
'tailwindcss' => '^1.0',
'tailwindcss' => '^1.4',
'@tailwindcss/custom-forms' => '^0.2',
], Arr::except($packages, [
'bootstrap',
Expand Down
4 changes: 4 additions & 0 deletions src/tailwindcss-stubs/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
module.exports = {
purge: [
'./resources/views/**/*.blade.php',
'./resources/css/**/*.css',
],
theme: {
extend: {}
},
Expand Down
4 changes: 1 addition & 3 deletions src/tailwindcss-stubs/webpack.mix.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const mix = require('laravel-mix');

require('laravel-mix-tailwind');
require('laravel-mix-purgecss');

/*
|--------------------------------------------------------------------------
Expand All @@ -20,6 +19,5 @@ mix.js('resources/js/app.js', 'public/js')

if (mix.inProduction()) {
mix
.version()
.purgeCss();
.version();
}

0 comments on commit 7e83fe6

Please sign in to comment.