react-swc-loader-template icon indicating copy to clipboard operation
react-swc-loader-template copied to clipboard

How to specify different TS configs depending on environment

Open bnheise opened this issue 2 years ago • 0 comments

Hey, thanks for this great template! I was wondering how I could specify which tsconfig file to use, though. I have different configs based on whether I'm building for development or production, but I don't see here how I could tell webpack which one to use. With the standard ts-loader, i can do this:

 options: {
 	configFile: 'tsconfig.prod.json',
},

I can't seem to figure out how to do that with this setup.

bnheise avatar Jan 28 '23 03:01 bnheise