Microbot first commit

This commit is contained in:
2018-07-15 02:04:22 +05:30
parent ccc644e00a
commit d6934656d2
8 changed files with 133 additions and 0 deletions

21
webpack.config.js Normal file
View 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'
};