Closed willemvb closed 6 years ago
Looks good! I'll add purgeCss to this branch too so we can merge it all in one go.
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...
mix.autoload
necessary? Can we remove this by default?extraJs
Blade sections? Webpack does pretty much all our conditional JS loadinghead
scripts all togethermain
, if necessary I create an article
component. I don't mind having them there though if you prefermix.autoload
: it makes jQuery available globally if I'm correct. Not sure if this is still needed on blender scripts or redactor?extraJs
: it is still used to inject some chart data in Blender
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.