I have a Job Diary app which shows jobs across the days of the week.
In development the app works fine.
In development
In production all jobs show in first column.
In production
The problem bit of code seems to be this.
<ul class="col-start-{{$start}} col-span-{{$end-($start-1)}} bg-white rounded-lg shadow">
It seems after purgecss runs the styles break. If I upload the full 3MB+ css file to the production server all works fine.
My tailwind.config.js looks like this
const defaultTheme = require('tailwindcss/defaultTheme')
module.exports = {
purge: ['./resources/views/**/*.blade.php'],
theme: {
extend: {
fontFamily: {
sans: ['Inter var', ...defaultTheme.fontFamily.sans],
},
},
},
variants: {},
plugins: [
require('@tailwindcss/ui'),
],
}
My tailwind entries in my package.json look like this
"devDependencies": {
"axios": "^0.19",
"browser-sync": "^2.26.12",
"browser-sync-webpack-plugin": "^2.0.1",
"cross-env": "^7.0",
"laravel-mix": "^5.0.1",
"laravel-mix-purgecss": "^5.0.0",
"lodash": "^4.17.19",
"resolve-url-loader": "^3.1.0",
"sass": "^1.15.2",
"sass-loader": "^8.0.0",
"vue-template-compiler": "^2.6.11"
},
"dependencies": {
"@tailwindcss/ui": "^0.5.0",
"autoprefixer": "^10.2.4",
"postcss": "^8.2.6",
"tailwindcss": "^2.0.3"
}
Any ideas what Im doing wrong?