-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathwebpack.dev.js
44 lines (43 loc) · 935 Bytes
/
webpack.dev.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
var path = require("path");
module.exports = {
resolve: {
extensions: [".ts", ".js"]
},
mode: "development",
entry: {
find: "./src/find.ts",
book: "./src/book.ts",
index: "./src/index.ts",
worker: "./src/worker.ts",
settings: "./src/settings.ts",
favorites: "./src/favorites.ts"
},
output: {
filename: "[name].js",
path: path.resolve(__dirname, "dist")
},
module: {
rules: [{ test: /\.ts$/, loader: "ts-loader" }]
},
devServer: {
contentBase: path.resolve(__dirname, "dist"),
watchContentBase: true,
stats: {
assets: false,
hash: false,
chunks: false,
errors: true,
errorDetails: true
},
overlay: true,
proxy: [
{
context: ["/content", "config.json"],
target: "https://gb.cs.unc.edu/static/tiny",
secure: false,
changeOrigin: true
}
]
},
devtool: "eval-source-map"
};