Skip to content

Is it possible to add another dev directory inside /app for react-rails? #1343

Answered by ritikm31
bubuluxWork asked this question in Q&A

You must be logged in to vote

Yes, it’s possible to add another dev directory inside the /app folder in a React-Rails application, but it depends on your specific use case. Here’s a general overview of how you might approach it:

Creating the Directory: You can add a new directory under /app by simply creating an app/dev folder. This is useful for organizing files or components specific to your development environment, like development-only React components, utilities, or test helpers.

Configuring Webpack (if you're using it): If the dev directory contains JavaScript files or React components, you may need to update your Webpack configuration (if custom-configured) to ensure it compiles assets from this new directory.

R…

Replies: 1 comment 1 reply

You must be logged in to vote
1 reply
@bubuluxWork

Answer selected by Judahmeek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants