chore: output to dist folder

This commit is contained in:
Ricardo Arturo Cabral Mejia
2022-01-31 22:00:52 +00:00
parent 0e259c55c3
commit 0bf3ebfe29
2 changed files with 9 additions and 2 deletions

1
.gitignore vendored
View File

@@ -2,3 +2,4 @@ yarn.lock
node_modules
*.wasm
out.js
dist

View File

@@ -1,10 +1,11 @@
const path = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin')
module.exports = {
mode: 'development',
entry: './main.js',
output: {
path: __dirname,
path: `${__dirname}/dist`,
filename: 'out.js'
},
experiments: {asyncWebAssembly: true},
@@ -17,5 +18,10 @@ module.exports = {
stream: 'readable-stream/readable.js',
crypto: false
}
}
},
plugins: [
new HtmlWebpackPlugin({
template: 'index.html'
})
],
}