feat: env based replacements (#9286)

* feat: file replacement handling for TS and pure file copy replacements

* test: add tests for replacements & refactor a bit

Co-authored-by: Igor Randjelovic <rigor789@gmail.com>
This commit is contained in:
Nathan Walker
2021-03-28 16:13:51 -07:00
committed by GitHub
parent 0b32d5a88d
commit 7594d00ed9
11 changed files with 211 additions and 322 deletions

View File

@ -35,7 +35,9 @@ export interface IWebpackEnv {
// enable verbose output
verbose?: boolean;
// todo: add others
// misc
replace?: string[] | string
}
interface IChainEntry {