- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.config.js
More file actions
Latest commit
28 lines (27 loc) · 518 Bytes
/
Copy pathwebpack.config.js
File metadata and controls
28 lines (27 loc) · 518 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
constpath=require('path');
constHtmlWebpackPlugin=require('html-webpack-plugin');
module.exports={
mode: 'development',
entry: './src/index.js',
plugins: [
newHtmlWebpackPlugin({
template: './src/index.html',
}),
],
output: {
filename: 'main.js',
path: path.resolve(__dirname,'dist'),
clean: true,
},
devServer: {
static: './dist',
},
module: {
rules: [
{
test: /\.css$/i,
use: ['style-loader','css-loader'],
},
],
},
};