-
Notifications
You must be signed in to change notification settings - Fork 2
/
webpack.config.js
46 lines (45 loc) · 1.04 KB
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
const path = require('path');
module.exports = {
entry: './src/ui/SimpleTestClient.ts',
mode: "development",
module: {
rules: [
{
test: /\.worker\.ts$/,
loader: "worker-loader",
},
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
},
{
test: /\.less$/i,
use: [
// compiles Less to CSS
"style-loader",
"css-loader",
"less-loader",
],
},
],
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
output: {
filename: 'main.js',
path: path.resolve(__dirname, 'dist'),
},
optimization: {
minimize: false
},
devServer: {
index: "index.html",
contentBase : path.join(__dirname),
publicPath: '/',
compress: true,
port: 9000,
hot: true
}
};