Skip to content

Commit

Permalink
Merge pull request #3006 from alisman/nots
Browse files Browse the repository at this point in the history
On Netlify, optimize build times by running ts transpileOnly (except prod build)
  • Loading branch information
alisman authored Jan 23, 2020
2 parents 5b15346 + b4acab3 commit 51972f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ var config = {
{
loader: "ts-loader",
options:{
transpileOnly: (isDev || isTest)
transpileOnly: (isDev || isTest || (process.env.NETLIFY && process.env.CONTEXT !== "production"))
}
}
],
Expand Down

0 comments on commit 51972f5

Please sign in to comment.