Skip to content

Commit

Permalink
use 3000 as port and update .editorconfig to js
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed Jul 28, 2022
1 parent 26c538f commit 5033455
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ insert_final_newline = true
indent_style = space
indent_size = 4

[*.js]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 80
trim_trailing_whitespace = true

[*.md]
# double whitespace at end of line
# denotes a line break in Markdown
Expand Down
10 changes: 7 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
entry: './index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'index.js',
filename: 'index.js'
},
plugins: [
new HtmlWebpackPlugin({
Expand All @@ -16,14 +16,18 @@ module.exports = {
new WasmPackPlugin({
crateDirectory: path.resolve(__dirname, ".")
}),
// 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']
})
],
mode: 'development',
devServer: {
compress: false,
host: '0.0.0.0',
open: true,
port: 8080,
},
experiments: {
asyncWebAssembly: true
}
Expand Down

0 comments on commit 5033455

Please sign in to comment.