1
0
mirror of https://github.com/fluencelabs/wasm-bindgen synced 2025-06-22 01:01:34 +00:00
Files
.cargo
crates
examples
add
canvas
char
closures
console_log
dom
duck-typed-interfaces
fetch
guide-supported-types-examples
hello_world
import_js
julia_set
no_modules
paint
performance
raytrace-parallel
request-animation-frame
todomvc
wasm-in-wasm
wasm2js
webaudio
webgl
src
.gitignore
Cargo.toml
README.md
build.sh
index.html
index.js
package.json
webpack.config.js
README.md
guide
releases
src
tests
.appveyor.yml
.gitattributes
.gitignore
.travis.yml
CHANGELOG.md
CONTRIBUTING.md
Cargo.toml
LICENSE-APACHE
LICENSE-MIT
README.md
build.rs
package.json
publish.rs
wasm-bindgen/examples/webgl/webpack.config.js

24 lines
672 B
JavaScript
Raw Normal View History

2018-09-15 23:28:15 -07:00
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const webpack = require('webpack');
2018-09-15 23:28:15 -07:00
module.exports = {
entry: './index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'index.js',
},
plugins: [
new HtmlWebpackPlugin({
template: "index.html"
}),
// Have this example work in Edge which doesn't ship `TextEncoder` or
// `TextDecoder` at this time.
new webpack.ProvidePlugin({
TextDecoder: ['text-encoding', 'TextDecoder'],
TextEncoder: ['text-encoding', 'TextEncoder']
2018-09-15 23:28:15 -07:00
})
],
mode: 'development'
};