Skip to content

Unable to replace file #22

@Raiper34

Description

@Raiper34

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions