-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
36 lines (32 loc) · 1.07 KB
/
webpack.config.js
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
36
// const path = require('path');
// module.exports = {
// entry: './src/Index.bs.js',
// // If you ever want to use webpack during development, change 'production'
// // to 'development' as per webpack documentation. Again, you don't have to
// // use webpack or any other bundler during development! Recheck README if
// // you didn't know this
// mode: 'production',
// output: {
// path: path.join(__dirname, "bundleOutput"),
// filename: 'index.js',
// },
// };
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: './src/Index.bs.js',
// If you ever want to use webpack during development, change 'production'
// to 'development' as per webpack documentation. Again, you don't have to
// use webpack or any other bundler during development! Recheck README if
// you didn't know this
mode: 'production',
output: {
path: path.join(__dirname, "build"),
filename: 'index.js',
},
plugins:[
new HtmlWebpackPlugin({
template: path.resolve('./index.html')
})
]
};