mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-07-27 01:51:56 +00:00
Examples: use html-webpack-plugin
This commit is contained in:
examples
add
asm.js
canvas
char
closures
comments
console_log
dom
fetch
guide-supported-types-examples
hello_world
import_js
julia_set
math
performance
smorgasboard
wasm-in-wasm
webaudio
@@ -1,4 +1,5 @@
|
||||
const path = require('path');
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
|
||||
module.exports = {
|
||||
entry: './index.js',
|
||||
@@ -6,5 +7,10 @@ module.exports = {
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
filename: 'index.js',
|
||||
},
|
||||
plugins: [
|
||||
new HtmlWebpackPlugin({
|
||||
template: "index.html"
|
||||
})
|
||||
],
|
||||
mode: 'development'
|
||||
};
|
||||
|
Reference in New Issue
Block a user