You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Everything works fine in the development environment on my local machine. Online, however, some tailwind classes I have newly started using are missing from the emitted pack css file, even when I run rails webpacker:clobber and rails webpacker:compile again after deployment. No error appears in the deployment output.
I'm using this gem in version 0.3.3. The app is deployed on a VPS using dokku, which uses heroku buildpacks. The app is using webpacker, not the assets pipeline.
// This file is automatically compiled by Webpack, along with any other files// present in this directory. You're encouraged to place your actual application logic in// a relevant structure within app/javascript and only use these pack files to reference// that code so it'll be compiled.importRailsfrom"@rails/ujs"importTurbolinksfrom"turbolinks"import*asActiveStoragefrom"@rails/activestorage"import"channels"Rails.start()Turbolinks.start()ActiveStorage.start()require("stylesheets/application.scss")import"controllers"
The text was updated successfully, but these errors were encountered:
For the poor soul who finds this while tracking down the same issue, even if it's myself half a year from now:
If you have partials that dynamically construct the class name they use for something based on a local variable, these variants will (obviously) not be picked up and therefore purged from the emitted CSS. 🤦♂️
Issue
Everything works fine in the development environment on my local machine. Online, however, some tailwind classes I have newly started using are missing from the emitted pack css file, even when I run
rails webpacker:clobber
andrails webpacker:compile
again after deployment. No error appears in the deployment output.I'm using this gem in version 0.3.3. The app is deployed on a VPS using dokku, which uses heroku buildpacks. The app is using webpacker, not the assets pipeline.
Files
postcss.config.js
app/javascript/stylesheets/tailwind.config.js
config/webpacker.yml
app/javascript/stylesheets/application.scss
app/javascript/packs/application.js
The text was updated successfully, but these errors were encountered: