-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.dev.js
More file actions
35 lines (33 loc) · 775 Bytes
/
Copy pathwebpack.dev.js
File metadata and controls
35 lines (33 loc) · 775 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
35
/* eslint-disable @typescript-eslint/no-var-requires */
import path from 'path';
import { merge } from 'webpack-merge';
import common from './webpack.common.js';
import { stylePaths } from './stylePaths.js';
const HOST = process.env.HOST || 'localhost';
const PORT = process.env.PORT || '9000';
export default merge(common('development'), {
mode: 'development',
devtool: 'eval-source-map',
cache: false,
devServer: {
host: HOST,
port: PORT,
historyApiFallback: true,
open: true,
static: {
directory: path.resolve('./dist'),
},
client: {
overlay: true,
},
},
module: {
rules: [
{
test: /\.css$/,
include: [...stylePaths],
use: ['style-loader', 'css-loader'],
},
],
},
});