Skip to content

Commit c22b216

Browse files
committed
Improve build time
1 parent 5f7a417 commit c22b216

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

web/webpack.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ module.exports = {
2828
{
2929
loader: 'ts-loader',
3030
options: {
31+
transpileOnly: true,
3132
configFile: path.resolve(__dirname, 'tsconfig.json'),
33+
compilerOptions: {
34+
sourceMap: process.env.NODE_ENV === 'development',
35+
incremental: true,
36+
},
3237
},
3338
},
3439
],
@@ -421,6 +426,9 @@ module.exports = {
421426
chunkIds: 'named',
422427
minimize: false,
423428
},
429+
cache: {
430+
type: 'filesystem',
431+
},
424432
};
425433

426434
if (process.env.FLAVOR === 'static') {

0 commit comments

Comments
 (0)