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
run: npm build --prod (with optimization enabled)
run: http-server -p 8080 -c-1 dist/projectName
test functionality: CSS styles appear to be missing and transitions no longer work properly
Desired functionality
CSS in development behaves the same as CSS in production
When "optimization" is set to true these lines (and possibly others I haven't yet found) seem to be changed. I'm also getting slight css errors in the library MDBootstrap although I haven't tried to pinpoint exactly which lines are breaking.
I've tried many combinations of extractCss, aot, and buildOptimizer flags and none seem to matter. The only thing that helps is turning "optimization" off.
Here are the problem styles rendered on the page when using ng serve
Here is the same section on the same element after using build prod
I know all the transition stuff doesn't make much sense without context (it doesn't WITH context either tbh) but the point is that my css is definitely different when using optimization.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Bug Report or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
npm: v5.6.0
Angular CLI: 6.2.5
Node: 8.11.4
OS: win32 x64
Angular: 6.1.7
Repro steps
run: npm build --prod (with optimization enabled)
run: http-server -p 8080 -c-1 dist/projectName
test functionality: CSS styles appear to be missing and transitions no longer work properly
Desired functionality
CSS in development behaves the same as CSS in production
Mention any other details that might be useful
Below is the problem code:
-webkit-transform: translate3d(100%, 0, 0);
transform: translate3d(100%, 0, 0);
-webkit-transition: opacity 0.3s, -webkit-transform 0s 0.3s;
transition: opacity 0.3s, transform 0s 0.3s;
When "optimization" is set to true these lines (and possibly others I haven't yet found) seem to be changed. I'm also getting slight css errors in the library MDBootstrap although I haven't tried to pinpoint exactly which lines are breaking.
I've tried many combinations of extractCss, aot, and buildOptimizer flags and none seem to matter. The only thing that helps is turning "optimization" off.
Here are the problem styles rendered on the page when using ng serve

Here is the same section on the same element after using build prod

I know all the transition stuff doesn't make much sense without context (it doesn't WITH context either tbh) but the point is that my css is definitely different when using optimization.
The text was updated successfully, but these errors were encountered: