Skip to content

Commit 3886637

Browse files
committed
Fix angular-fullstack#1636 Binary files are corrupted in dev mode
I spent a whole day to find the problem.
1 parent 2997e34 commit 3886637

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: app/templates/server/config/express.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,12 @@ export default function(app) {
8080
}
8181

8282
if ('development' === env) {
83-
app.use(require('connect-livereload')());
83+
app.use(require('connect-livereload')({
84+
ignore: [/^\/api\/(.*)/,
85+
/\.js(\?.*)?$/, /\.css(\?.*)?$/, /\.svg(\?.*)?$/, /\.ico(\?.*)?$/, /\.woff(\?.*)?$/,
86+
/\.png(\?.*)?$/, /\.jpg(\?.*)?$/, /\.jpeg(\?.*)?$/, /\.gif(\?.*)?$/, /\.pdf(\?.*)?$/
87+
]
88+
}));
8489
}
8590

8691
if ('development' === env || 'test' === env) {

0 commit comments

Comments
 (0)