When I deployed with rails6, scss didn't work and I was worried a lot, so I wrote an article. Since I am a beginner, I think there are some mistakes, but please forgive me.
ruby 2.6.5 rails 6.0.0 'sass-rails', '~> 5' 'webpacker', '~> 4.0'
Scss works fine locally, but it doesn't work in production.
local
Production environment
The function of full calender works like this, but I was having a problem that looked strange.
Before correction
webpacker.yml
extract_css: true
Edited
webpacker.yml
extract_css: false
It was solved by setting extract_css to false in this way.
I used scss instead of css, so It seems that the error occurred because I went to look for .css by default but could not find it.
https://ja.stackoverflow.com/questions/66709
Recommended Posts