We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Binary files dynamically generated and downloaded from the api are corrupted, due to connect-livereload trying to inject code into the binary.
The issue is discussed here: intesso/connect-livereload#39
This can be fixed by configuring connect-livereload to ignore /api path in server/config/express.js:
if ('development' === env) { app.use(require('connect-livereload')({ ignore: [/^\/api\/(.*)/, /\.js(\?.*)?$/, /\.css(\?.*)?$/, /\.svg(\?.*)?$/, /\.ico(\?.*)?$/, /\.woff(\?.*)?$/, /\.png(\?.*)?$/, /\.jpg(\?.*)?$/, /\.jpeg(\?.*)?$/, /\.gif(\?.*)?$/, /\.pdf(\?.*)?$/ ] })); }
To reproduce, simply download a binary from the api using res.download.
The text was updated successfully, but these errors were encountered:
Fix angular-fullstack#1636 Binary files are corrupted in dev mode
3886637
I spent a whole day to find the problem.
@Toub,
This was quite helpful. Thank you so much.
John
Sorry, something went wrong.
fix(livereload): ignore api routes and specific non-html files
c6a396b
closes #1636, #1764
Successfully merging a pull request may close this issue.
Binary files dynamically generated and downloaded from the api are corrupted, due to connect-livereload trying to inject code into the binary.
The issue is discussed here: intesso/connect-livereload#39
This can be fixed by configuring connect-livereload to ignore /api path in server/config/express.js:
To reproduce, simply download a binary from the api using res.download.
The text was updated successfully, but these errors were encountered: