Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to replace file #22

Open
Raiper34 opened this issue Dec 19, 2022 · 0 comments
Open

Unable to replace file #22

Raiper34 opened this issue Dec 19, 2022 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@Raiper34
Copy link

Hi, I do not know, what I am doing wrong, but I can not replace ts file. I have following

...
module: {
    rules: [
        { test: /\.tsx?$|\.jsx?$/, include: path.join(__dirname, '../src'), loader: 'ts-loader' },
      {test: /\.environment\.ts$/, loader: 'file-replace-loader', options: {replacement: path.join(__dirname, '../src/scripts/environment.ios.ts')}},
    ]
  },
...

Environments are in src/scripts and I import environment.ts into my source files, but I need to replace it with webp[ack to use environment.ios.ts. webpack configurations are stored in webpack folder. Any idea? I am really confused.

@vyushin vyushin added the help wanted Extra attention is needed label Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants