Skip to content

Commit

Permalink
Add build tsconfig for automatic deployments (#1784)
Browse files Browse the repository at this point in the history
  • Loading branch information
gohabereg authored Sep 17, 2021
1 parent 70a736b commit 1433c1a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"exclude": ["test"]
}
4 changes: 4 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module.exports = (env, argv) => {
const { LicenseWebpackPlugin } = require('license-webpack-plugin');
const pkg = require('./package.json');


/**
* Environment
*
Expand Down Expand Up @@ -78,6 +79,9 @@ module.exports = (env, argv) => {
},
{
loader: 'ts-loader',
options: {
configFile: NODE_ENV === 'production' ? 'tsconfig.build.json' : 'tsconfig.json',
},
},
],
},
Expand Down

0 comments on commit 1433c1a

Please sign in to comment.