This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Description
[email protected]
[email protected]
[email protected]
In my application I have an environments folder with the following files:
environment.d.ts
environment.debug.ts
environment.release.ts
The environment file is referenced from other files in the application like this, and the d.ts file resolves the module import errors during development.
import { environment } from './../../environments/environment';
When doing a regular build with tns run <platform>, the environment.debug.ts file is renamed to environment.ts when it is copied to the platform folder. It will copy the release version if I provide the --release flag.
This does not work for webpack though. I get the following error:
Module not found: Error: Can't resolve './../../environments/environment'
It appears that the webpack plugin isn't taking these files into account. Is this a bug, or am I missing a Webpack loader?