wasm-bindgen/examples/comments/webpack.config.js
2018-09-11 08:42:22 +03:00

18 lines
386 B
JavaScript

const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: './index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'index.js',
},
plugins: [
new HtmlWebpackPlugin({
template: "index.html"
})
],
mode: 'development',
devtool: 'source-map',
};