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:
@@ -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>
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user