Specify tsconfig.json in webpack config

By default, when launching webpack with awesome-typescript-loader, it will use the tsconfig.json file from the current working directory. In order to specify a different tsconfig.json, you have to add

        query: {
          configFileName: "./subdir/tsconfig.json"
        }

to the awesome-typescript-loader under module -> rules. An example for the complete entry is:

  …
  module: {
    rules: [
      // All files with a ‘.ts’ or ‘.tsx’ extension will be handled by ‘awesome-typescript-loader’.
      {
test: /.tsx?$/, include: path.resolve(__dirname, ‘.’), loader: “awesome-typescript-loader”, query: { configFileName: “./subdir/tsconfig.json” } } ] }, …