We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1eea62f commit 4803225Copy full SHA for 4803225
webpack.config.js
@@ -1 +1,28 @@
1
+const path = require('path');
2
+const HtmlWebpackPlugin = require('html-webpack-plugin');
3
4
+module.exports = {
5
+ mode: 'development',
6
+ entry: './src/index.js',
7
+ devServer: {
8
+ static: './dist',
9
+ },
10
+ plugins: [
11
+ new HtmlWebpackPlugin({
12
+ template: './src/index.html',
13
+ }),
14
+ ],
15
+ output: {
16
+ filename: 'main.js',
17
+ path: path.resolve(__dirname, 'dist'),
18
+ clean: true,
19
20
+ module: {
21
+ rules: [
22
+ {
23
+ test: /\.css$/i,
24
+ use: ['style-loader', 'css-loader'],
25
26
27
28
+};
0 commit comments