My application runs perfectly fine with npm run start
. However, when I try npm run build:ssr
and npm run serve:ssr
, it doesn't function properly without throwing any errors.
While running npm run start
, there's a button with 65% opacity. The desired behavior is to make the opacity 100% on hover.
https://i.sstatic.net/wZssV.png
https://i.sstatic.net/gEdeV.png
The issue arises during Angular SSR build (npm run build:ssr
and npm run serve:ssr
) where the opacity setting doesn't work as expected.
https://i.sstatic.net/Lg5MY.png https://i.sstatic.net/Qgdl1.png
Currently, I'm using a CDN to load Bootstrap by directly embedding the link into index.html:
<link rel="stylesheet" type="text/css" href="https://cdn.domain.com/bootstrap.min.css" />
I have confirmed that the CSS file can be downloaded without any issues.
Below are my angular.json and package.json files for reference:
angular.json
{
...
package.json
{
...
I suspect that the way Bootstrap is being loaded might not be correct. Any assistance or recommendations would be highly appreciated.