production build not working
See original GitHub issueI’m submitting a … (check one with “x”)
[x] bug report => check the README and search github for a similar issue or PR before submitting
[ ] support request => check the README and search github for a similar issue or PR before submitting
[ ] feature request
Current behavior
After a fresh git clone / npm install, I run npm run build:universal-prod
I get this issue 4 times.
Then :
Expected/desired behavior
Build files ready for universal production server.
Minimal reproduction of the problem with instructions
npm run build:universal-prod
Please tell us about your environment:
Mac OS, yarn.
- Angular version: 4.1.0
- Node (for AoT issues):
node --version
= 6.9.1
Thanks !
PS : it might be that I don’t completely understand how to run production. If so, I can create a PR modifying the readme.
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
Why won't React production build run on the browser?
Sometimes the reason that the content is not served is because the command of "serve -s" was executed from outside of the build...
Read more >Build not working for production - White Page
Hi, I'm trying to generate a build to upload it to our dev server but i'm facing some problems, i hope you can...
Read more >React production build not working · Discussion #8119 - GitHub
I've got a super basic React application which has HTML, SCSS and JS. When running it locally everything is fine and works perfectly....
Read more >Optimizing Performance - React
If you're benchmarking or experiencing performance problems in your React apps, make sure you're testing with the minified production build.
Read more >Reactjs Build Production: Optimize Performance - CopyCat Blog
In this article, we will be taking a deep dive into the Reactjs build production, deployment, and tips on optimising your app's performance....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I solved this by forcing the
uglify-js
deps to use versiongit://github.com/mishoo/UglifyJS2#harmony-v2.8.22
.Get the latest version of this repository, and remove
webpack
anduglify-js
dirs fromnode_modules
and runnpm install
/yarn
et voila!Let’s leave it because I could not reproduce it (using
fulls1z3/webpack
as a dependency). Let’s keep this open for a few more days, and let’s see.