-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.dev.ts
More file actions
29 lines (27 loc) · 779 Bytes
/
webpack.dev.ts
File metadata and controls
29 lines (27 loc) · 779 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
import path from 'path'
import merge from 'webpack-merge'
import webpack, { Configuration } from 'webpack'
import { Configuration as WebpackDevServerConfiguration } from 'webpack-dev-server'
import HtmlWebpackPlugin from 'html-webpack-plugin'
import common from './webpack.common'
module.exports = merge<Configuration & WebpackDevServerConfiguration>(common, {
mode: 'development',
entry: './dev/index.tsx',
resolve: {
alias: {
'luke-chapman-resume': path.resolve(__dirname, 'src'),
},
},
devtool: 'inline-source-map',
devServer: {
static: path.resolve(__dirname, 'dev'),
hot: true,
},
plugins: [
new HtmlWebpackPlugin({
template: 'dev/index.html',
hash: true,
}),
new webpack.HotModuleReplacementPlugin(),
],
})