We've moved discussions to Discord

CSS styles in production

Matt Bjornson
None of my css stylies are making it into production. I've got a vanilla esbuild.conf.js, post.config.js from jumpstart repo. The build:css and build script in pacakage.json is identical to ones in jumpstart repo. What else should I check? I checked the various env files ( config/environments/production.rb) and it's pretty much the same as the jumpstart repo, what should I check next? I'm kinda at my wits end on this and now have a shitty looking site in production :D 

Note: I am running rails 7 and am updated with the latest release of jumpstart-pro.

Any help greatly appreciated!
Matt Bjornson
If I precompile assets on my dev machine, I get the same result, so there must be some precompile:asset configuration that is wrong. Did this change much from webpacker/rails 6 to rails7/esbuild?
Matt Bjornson
In my development env, I ran `rails assets:clobber` and my development environment renders styles properly.
Corinn Pope
Running into the same issue! All my CSS works like a charm on my local machine, but then when I deploy it looks awful.

 I've tried every combo of assets compile/clobber. It's like tailwindcss is just not getting built but everything else is. Gah!

EDIT: I figured it out after checking the Issues log in the repo. Found this: https://github.com/jumpstart-pro/jumpstart-pro-rails/issues/229

Apparently, I was importing a style for the gridstack library in a stimulus controller and that's a no-no! 
Matt Bjornson
None of my css stylies are making it into production. I've got a vanilla esbuild.conf.js, post.config.js from jumpstart repo. The build:css and build script in pacakage.json is identical to ones in jumpstart repo. What else should I check? I checked the various env files ( config/environments/production.rb) and it's pretty much the same as the jumpstart repo, what should I check next? I'm kinda at my wits end on this and now have a shitty looking site in production :D 

Note: I am running rails 7 and am updated with the latest release of jumpstart-pro.

Any help greatly appreciated!
Matt Bjornson
If I precompile assets on my dev machine, I get the same result, so there must be some precompile:asset configuration that is wrong. Did this change much from webpacker/rails 6 to rails7/esbuild?
Matt Bjornson
In my development env, I ran `rails assets:clobber` and my development environment renders styles properly.
Corinn Pope
Running into the same issue! All my CSS works like a charm on my local machine, but then when I deploy it looks awful.

 I've tried every combo of assets compile/clobber. It's like tailwindcss is just not getting built but everything else is. Gah!

EDIT: I figured it out after checking the Issues log in the repo. Found this: https://github.com/jumpstart-pro/jumpstart-pro-rails/issues/229

Apparently, I was importing a style for the gridstack library in a stimulus controller and that's a no-no! 
Notifications
You’re not receiving notifications from this thread.
© 2022 Jumpstart Pro by GoRails, LLC