Update webpack.config.js

This commit is contained in:
Sven Sauleau
2019-05-01 17:43:50 +02:00
committed by GitHub
parent 187a289ec8
commit 98de4d7098

View File

@ -10,7 +10,9 @@ module.exports = {
filename: 'index.js', filename: 'index.js',
}, },
plugins: [ plugins: [
new HtmlWebpackPlugin(), new HtmlWebpackPlugin({
template: './index.html'
}),
new WasmPackPlugin({ new WasmPackPlugin({
crateDirectory: path.resolve(__dirname, ".") crateDirectory: path.resolve(__dirname, ".")
}), }),