fix webpack
This commit is contained in:
parent
72338ad466
commit
641fee7ee7
3 changed files with 6 additions and 6 deletions
|
@ -1,5 +1,3 @@
|
|||
import { Game } from "planetwars";
|
||||
import { Shader } from "./webgl/shader"
|
||||
|
||||
import { set_instance } from './index.ts'
|
||||
import { } from './games.ts' // IMPORT GAMES PLEASE, thank you webpack <3
|
||||
|
|
|
@ -2,11 +2,12 @@
|
|||
"name": "create-wasm-app",
|
||||
"version": "0.1.0",
|
||||
"description": "create an app to consume rust-generated wasm packages",
|
||||
"main": "dist/index.js",
|
||||
"main": "./bootstrap.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"scripts": {
|
||||
"develop": "webpack --mode development --watch",
|
||||
"build": "webpack --config webpack.config.js",
|
||||
"start": "webpack-dev-server"
|
||||
"start": "webpack-dev-server --content-base dist/"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -17,8 +17,9 @@ module.exports = {
|
|||
extensions: [ '.tsx', '.ts', '.js', '.wasm' ]
|
||||
},
|
||||
output: {
|
||||
filename: 'bootstrap.js',
|
||||
path: path.resolve(__dirname, 'dist')
|
||||
path: path.join(__dirname, 'dist'),
|
||||
publicPath: '/',
|
||||
filename: 'bootstrap.js'
|
||||
},
|
||||
plugins: [
|
||||
new CopyWebpackPlugin(['index.html'])
|
||||
|
|
Loading…
Reference in a new issue