-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.dev.js
More file actions
33 lines (28 loc) · 987 Bytes
/
webpack.dev.js
File metadata and controls
33 lines (28 loc) · 987 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
const path = require('path');
const common = require('./webpack.common.js');
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
const merge = require('webpack-merge');
const config = {
mode: 'development',
output: {
// Fixes a bug with source maps for firefox.
// https://github.com/webpack/webpack/issues/1194#issuecomment-565960948
devtoolNamespace: 'firefoxSourceMapFix'
},
devServer: {
// Change the port to have less conflicts with other servers.
port: 8090,
// Write the file to the disk so we can inspect it if necessary.
writeToDisk: true,
// Reload on change of src files.
liveReload: true,
// Do not use hot modules.
hot: false
},
devtool: 'cheap-module-eval-source-map',
plugins: [
// Start TS typechecking in a separate process.
new ForkTsCheckerWebpackPlugin()
]
};
module.exports = merge(common, config);