"ng build -prod" results in unexpected behaviour of the application
OS?
Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Windows 7, 10 and Debian
Versions.
Please run
ng --version. If there's nothing outputted, please run in a Terminal:node --versionand paste the result here:
angular-cli: 1.0.0-beta.21 node: 6.9.1 os: win32 x64
Repro steps.
Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
The log given by the failure.
Normally this include a stack trace and some more information.
No Error in the logs or the console
Mention any other details that might be useful.
When I build my Angular Frontend with "ng build --base-href
So "ng build" and even "npm start" (I know its a different server in this case) works totally fine, but as soon as the -prod flag is used, the app behaves really strange and I can not see why.
The console output and logs seem to be fine, there is one warning at the start of the build process saying:
"WARNING in main.42171ac1a8f439b4975c.bundle.js from UglifyJs" The other entries are just unused functions and side effects of unused variables.
let me know if you have any suggestions, really appreciate your help :)
Thanks! We'll be in touch soon.
Does ng serve --prod also exhibit this behaviour?
Closing as inactive.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.