Skip to content

Allow Webpack to "see" more paths other than src. #833

@ekaratzaferis

Description

@ekaratzaferis

I've read this in the user guide:

You may create subdirectories inside src. For faster rebuilds, only files inside src are processed by Webpack.
You need to put any JS and CSS files inside src, or Webpack won’t see them.

Is there any way I can bypass this limitation? If I want to structure my files in folders and have them all processed by Webpack, what should I do?

Activity

gaearon

gaearon commented on Oct 3, 2016

@gaearon
Contributor

If I want to structure my files in folders and have them all processed by Webpack, what should I do?

Is there any problem with putting those folders inside of src?

gaearon

gaearon commented on Oct 3, 2016

@gaearon
Contributor

Longer term we plan to allow an equivalent of having multiple packages in one project: #741.
Not sure if this helps?

ekaratzaferis

ekaratzaferis commented on Oct 3, 2016

@ekaratzaferis
Author

There's nothing wrong just my personal taste :)

Looking forward for the #741 feature!

locked and limited conversation to collaborators on Jan 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @gaearon@ekaratzaferis

        Issue actions

          Allow Webpack to "see" more paths other than src. · Issue #833 · facebook/create-react-app