-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
33 lines (26 loc) · 871 Bytes
/
webpack.config.js
File metadata and controls
33 lines (26 loc) · 871 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
// extreme minimal webpack.config.js file
// for more details, see: https://webpack.js.org/configuration/
// for webpack.config.cjs template, see: https://gist.github.com/nickyonge/bb9fe46458c16e1cd560bce505e4af39
// for full webpack template, see: https://github.com/nickyonge/webpack-template
const path = require('path');
module.exports = {
mode: 'development', // default is 'production'
entry: './src/index.js',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
},
module: {
rules: [
// example CSS module, requiring the css-loader package
// {
// test: /\.css$/,
// use: ['style-loader', 'css-loader'],
// },
],
},
plugins: [
// example HTML plugin, requiring the html-webpack-plugin package
// new HtmlWebpackPlugin({ title: 'My Webpack Site` }),
],
};