This PR addresses the request to remove the TailwindCSS CDN and include our own stylesheet, as @excid3 said in issue #198
I'd like to drop the TailwindCSS CDN and just ship our own stylesheet soon if anyone wants to PR that.
We could also probably do the same for the JavaScript.
CDNs were just the easiest to figure out while Rails was in the jsbundling /cssbundling / propshaft / importmap mess. I think things have settled out enough that we can ship our own assets and importmaps. I need to look into how MissionControl handles assets and we can cut a new release with those changes.
Configured Tailwind with PostCSS (changes in host rails, overrided files, reflects in Tailwind)
Tailwind compilation:
Dev: Compiles with --watch when Rails server runs
Prod: Compiles with --minify
Note: Sprockets remains, but Tailwind file is ignored
Questions
I'm not certain if this PR fully meets your expectations.
Should we proceed with similar changes for JavaScript assets?
Are we aiming for importmaps with external links, bundled assets, or a mix?
Is the referenced MissionControl the mission_control-jobs gem? If so, should we follow their approach of using Gemfiles for Stimulus, Turbo, and other packages? like their importmap and gemspec
I can continue with JavaScript assets once we clarify the preferred approach. Please let me know if any adjustments are needed for this PR or if you'd like me to proceed with further changes.
This PR addresses the request to remove the TailwindCSS CDN and include our own stylesheet, as @excid3 said in issue #198
Changes
tailwindcss-rails
gem (installs standalone exe tailwind)--watch
when Rails server runs--minify
Note: Sprockets remains, but Tailwind file is ignored
Questions
I'm not certain if this PR fully meets your expectations.
mission_control-jobs
gem? If so, should we follow their approach of using Gemfiles for Stimulus, Turbo, and other packages? like their importmap and gemspecI can continue with JavaScript assets once we clarify the preferred approach. Please let me know if any adjustments are needed for this PR or if you'd like me to proceed with further changes.