Bypass mem files for prod build
@@ -21,8 +21,11 @@ if (isDevMode) enableLiveReload({ strategy: "react-hmr" });
// Allow images and json outside of application package to be loaded in production build
addBypassChecker(filePath => {
return (
- filePath.indexOf(app.getAppPath()) === -1 &&
- (/.jpg/.test(filePath) || /.json/.test(filePath) || /.png/.test(filePath))
+ filePath.indexOf(app.getAppPath()) === -1 ||
+ /.jpg/.test(filePath) ||
+ /.json/.test(filePath) ||
+ /.png/.test(filePath) ||
+ /.mem/.test(filePath)
);
});
