|
@@ -61,12 +61,18 @@ module.exports = (env, argv) => ({
|
61
|
61
|
test: /\.ts$/,
|
62
|
62
|
include: path.resolve(__dirname, 'src'),
|
63
|
63
|
exclude: /node_modules/,
|
64
|
|
- use: 'ts-loader',
|
|
64
|
+ use: [{
|
|
65
|
+ loader: 'ts-loader',
|
|
66
|
+ options: {
|
|
67
|
+ // improve the build time when using the dev server
|
|
68
|
+ transpileOnly: env.PORT !== undefined,
|
|
69
|
+ },
|
|
70
|
+ }],
|
65
|
71
|
}],
|
66
|
72
|
},
|
67
|
73
|
|
68
|
74
|
devServer: {
|
69
|
|
- https: true,
|
|
75
|
+ server: 'https',
|
70
|
76
|
host: env.HOST || '0.0.0.0',
|
71
|
77
|
port: env.PORT || 8000,
|
72
|
78
|
static: ['demos', 'tests'].map(dir => ({
|