Skip to content

Commit

Permalink
fix(cms): fix purge content folders
Browse files Browse the repository at this point in the history
Provide correct folders for tailwind.config.js purging
  • Loading branch information
Frantz Kati committed Jan 16, 2021
1 parent 3f3846d commit 9f05e07
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 19,451 deletions.
2 changes: 1 addition & 1 deletion packages/cms/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const defaultTheme = require('tailwindcss/defaultTheme')
module.exports = {
purge: {
enabled: process.env.NODE_ENV === 'production',
content: ['./**/*.(ts|tsx|css)', '../components/**/*.(ts|tsx|css)']
content: ['./**/*.tsx', './../components/**/*.tsx']
},
darkMode: false, // or 'media' or 'class'
theme: {
Expand Down
2 changes: 0 additions & 2 deletions packages/cms/webpack.mix.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const Path = require('path')
const mix = require('laravel-mix')

mix.options({
Expand All @@ -10,4 +9,3 @@ mix.options({
mix.extract(['react', 'react-dom', 'react-router-dom'])
.ts('main.tsx', 'build/public/')
.postCss('css/styles.css', 'build/public/', [require('tailwindcss')])
// .copy('plugin/template/index.mustache', 'build/template/index.mustache')
Loading

0 comments on commit 9f05e07

Please sign in to comment.