Basically when I was about to do my first push to production the yarn build:production process completed successfully but a lot of custom styling (maybe all?) is removed and I’m left with only the default bootstrap v4 CSS. It is as described here (note, I didn’t change config or get an error the OP reported, but the result is the same. I am also using navbar from BS4 but version 4.5.2)
There are two similar solutions in this thread, neither worked
My packages.json is below. Not sure where the problem could be since there’s no error and it works for staging yarn build
But purgeCss is default in sage 10. Why would the intended behavior for a production build be to strip out all my custom CSS I put in the scss files? I get the purpose of it, but it removes EVERYTHING custom.
My site looks fine in staging and all custom styling is there, but in production I only see the default bootstrap 4 CSS; my added design built in resources/assets/styles/ folder is getting stripped out.
Yes I did. I didn’t see any configuration that would change my situation. I going to start the process tomorrow of backing everything out and introducing things a little at a time and will report back when I narrow it down.
Not sure how to expand on it; I didn’t change anything with the project structure; the majority of the project is based around the "stoutlogic/acf-builder" plugin and the ACF interface I built. I copied over a lot of CSS styles from the original design into this new sage10 project. That plugin and the seo framework are the only plugins on the site.
I will also say, the classes do seem to exist in the file (I searched for .report-tabs, a custom class for my design, in the compressed CSS and it was there), but for whatever reason, the styles associated with that class were not being processed and displayed by any browser.