Migrated from parcel to webpack

The whole idea of parcel was that it was configless.
Now parcel 2 needs a config file. At that point, why not use webpack?
This commit is contained in:
Milton
2021-10-31 20:27:50 -03:00
parent f19236e258
commit 93ec2e7fb6
6 changed files with 5313 additions and 12918 deletions

View File

@@ -22,12 +22,12 @@
height: 100%;
}
</style>
</head>
<body>
<noscript>Please enable JavaScript in your web browser to view this page.</noscript>
<div id="pixi-content"><canvas id="pixi-canvas" /></div>
</body>
<script defer src="./index.ts"></script>
</html>

View File

@@ -3,7 +3,7 @@ import { Application, Sprite } from 'pixi.js'
const app = new Application({
view: document.getElementById("pixi-canvas") as HTMLCanvasElement,
resolution: window.devicePixelRatio || 1,
autoDensity:true,
autoDensity: true,
backgroundColor: 0x6495ed,
width: 640,
height: 480