Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.

Change src folder location #239

Open
Blazsoul opened this issue Aug 5, 2021 · 0 comments
Open

Change src folder location #239

Blazsoul opened this issue Aug 5, 2021 · 0 comments
Labels
Bug Something isn't working

Comments

@Blazsoul
Copy link

Blazsoul commented Aug 5, 2021

Because i am combining direflow with another project, I am having a clash between 2 index.js files under src folder.
I tried to change it by adding paths prop as suggested here: https://stackoverflow.com/questions/44448851/how-do-i-change-src-folder-to-something-else-in-create-react-app
But it didnt work:

const path = require('path');

module.exports = {
    paths: function (paths, env) {        
        paths.appIndexJs = path.resolve(__dirname, 'mysrc/client.js');
        paths.appSrc = path.resolve(__dirname, 'mysrc');
        return paths;
    }
}

Do you guys know any other way?
Thanks

@Blazsoul Blazsoul added the Bug Something isn't working label Aug 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant