spatie / blender

The Laravel template used for our CMS like projects
https://freek.dev/on-open-sourcing-blender
876 stars 148 forks source link

Add Tailwind CSS #482

Closed willemvb closed 6 years ago

willemvb commented 6 years ago
sebastiandedeyne commented 6 years ago

Looks good! I'll add purgeCss to this branch too so we can merge it all in one go.

sebastiandedeyne commented 6 years ago

I added in Purgecss. The Blender ignore rules could be cleaner in the future, but I bumped against a restriction of the Purgecss webpack plugin (see https://github.com/FullHuman/purgecss-webpack-plugin/issues/3).

A few other thoughts I have regarding files we touched in this PR...

willemvb commented 6 years ago
sebastiandedeyne commented 6 years ago

mix.autoload: it makes jQuery available globally if I'm correct. Not sure if this is still needed on blender scripts or redactor?

I'm not sure, but we should keep it like that to be safe. Imo this is a flaw in Blender though, and shouldn't need to be part of our build pipeline. Instead I registered jQuery on window in back/app.js.

Drop extraJs: it is still used to inject some chart data in Blender

Since the app script is deferred, and inline scripts aren't, it doesn't matter where the scripts that register window.chartData are placed. Removed the extraJs section since it isn't necessary.