Microbot first commit
This commit is contained in:
21
webpack.config.js
Normal file
21
webpack.config.js
Normal file
@@ -0,0 +1,21 @@
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
|
||||
module.exports = {
|
||||
entry: ['./src/js/index.js'],
|
||||
output: {
|
||||
path: __dirname + '/dist',
|
||||
filename: './bundle.js'
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{ test: /.js/, loader: 'babel-loader', exclude: /node_modules/ },
|
||||
{ test: /.html/, loader: 'raw-loader', exclude: /node_modules/ }
|
||||
]
|
||||
},
|
||||
plugins: [
|
||||
new HtmlWebpackPlugin({
|
||||
template: './public/index.html'
|
||||
})
|
||||
],
|
||||
mode: 'development'
|
||||
};
|
||||
Reference in New Issue
Block a user