forked from dana322/jquery-es
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.dev.js
More file actions
32 lines (30 loc) · 740 Bytes
/
Copy pathwebpack.dev.js
File metadata and controls
32 lines (30 loc) · 740 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
const HtmlPlugin = require('html-webpack-plugin')
const {EvalSourceMapDevToolPlugin} = require('webpack')
const ESLintPlugin = require('eslint-webpack-plugin')
const {ProgressPlugin} = require('webpack')
module.exports = {
mode: 'development',
entry: './demo/index.js',
stats: 'errors-only',
plugins: [
new HtmlPlugin({
template: 'demo/index.html'
}),
new EvalSourceMapDevToolPlugin({}),
new ESLintPlugin(),
new ProgressPlugin()
],
devServer: {
open: true,
port: 8000,
overlay: true
},
module: {
rules: [
{
test: /\.html$/i,
loader: 'html-loader'
}
]
}
}