-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
31 lines (30 loc) · 911 Bytes
/
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
const path = require('path');
// HACK: OpenSSL 3 does not support md4 any more, but webpack hardcodes it all over the place: https://github.com/webpack/webpack/issues/13572
const crypto = require("crypto");
const crypto_orig_createHash = crypto.createHash;
crypto.createHash = algorithm => crypto_orig_createHash(algorithm === "md4" ? "sha256" : algorithm);
module.exports = {
mode: "development",
entry: "./src/app.ts",
output: {
path: path.resolve(__dirname, ''),
filename: './build/bundle.js',
},
resolve: {
extensions: ['.ts', '.js'],
modules: [path.resolve(path.join(__dirname, 'node_modules'))]
},
module: {
rules: [
{
test: /\.ts$/,
loaders: ['ts-loader']
}
]
},
devServer: {
host: 'localhost',
port: 8080
},
performance: {hints: false}
};