forked from SHSGames/shsgames.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.dev.ts
More file actions
34 lines (33 loc) · 696 Bytes
/
webpack.dev.ts
File metadata and controls
34 lines (33 loc) · 696 Bytes
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
import { Configuration, DefinePlugin, HotModuleReplacementPlugin } from "webpack";
import merge from "webpack-merge";
import config from "./webpack.conf";
export = merge(config, <Configuration>{
mode: "development",
output: {
filename: "app/[name].dev.js"
},
plugins: [
new HotModuleReplacementPlugin,
new DefinePlugin({ PRODUCTION: JSON.stringify(false) })
],
devtool: "cheap-module-source-map",
devServer: {
port: 8080,
liveReload: false,
historyApiFallback: {
index: "/index.html",
disableDotRule: true
},
proxy: {
"/api": {
target: "http://localhost/",
secure: false
}
},
hot: true,
host: "localhost"
},
watchOptions: {
poll: true
}
});