Skip to content

Allow importing assets from parent folder #497

Closed
@fson

Description

@fson

The app we are building with create-react-app is a part of a larger application, and resides in a subfolder of the repository. We wanted to load some JSON files from the parent folder, so we don't need to copy these configurations (used also by other parts of the app) to the subfolder.

Currently this results in an error, because files from the parent folder are not loaded with json-loader:

You may need an appropriate loader to handle this file type.

Would it make sense to loosen the include setting for certain loaders? We probably still want to exclude node_modules from the modules processed with babel-loader, but wouldn't it make sense to drop the include setting altogether from those loaders that already have include: [paths.appSrc, paths.appNodeModules]?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions