Skip to content

Commit 390c534

Browse files
committed
Improve build time
1 parent 418cd67 commit 390c534

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
],
@@ -429,6 +434,9 @@ module.exports = {
429434
chunkIds: 'named',
430435
minimize: false,
431436
},
437+
cache: {
438+
type: 'filesystem',
439+
},
432440
};
433441

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

0 commit comments

Comments
 (0)