Skip to content

Commit

Permalink
Fix windows new route bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xHomu committed Jul 4, 2023
1 parent c50f2bc commit 15bf302
Show file tree
Hide file tree
Showing 3 changed files with 1,785 additions and 1,771 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
"npm-run-all": "^4.1.5",
"prettier": "^2.8.4",
"prettier-plugin-tailwindcss": "^0.2.3",
"remix-flat-routes": "^0.5.7",
"remix-flat-routes": "^0.5.9",
"shx": "^0.3.4",
"tailwindcss": "^3.3.0",
"tailwindcss-bg-patterns": "^0.2.0",
Expand Down
8 changes: 6 additions & 2 deletions remix.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@ module.exports = {
tailwind: true,
// postcss: true, // commented out to speed up hmr, uncomment if you need to use postcss.
publicPath: getPublicPath(),
ignoredRouteFiles: ["**/.*"],
// ignore all files in routes folder to prevent
// default remix convention from picking up routes
ignoredRouteFiles: ["**/*"],
routes: async (defineRoutes) => {
return flatRoutes(["routes", "_custom/routes"], defineRoutes);
return flatRoutes(["routes", "_custom/routes"], defineRoutes, {
ignoredRouteFiles: [".*"],
});
},
serverDependenciesToBundle: ["nanoid", "array-move"],
};
Loading

0 comments on commit 15bf302

Please sign in to comment.