diff --git a/src/index.ts b/src/index.ts index 97df796..8d97098 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,9 +2,9 @@ /// import * as Phaser from 'phaser' -import {BootState} from './states/boot.ts' -import {SplashState} from './states/splash.ts' -import {GameState} from './states/game.ts' +import {BootState} from './states/boot' +import {SplashState} from './states/splash' +import {GameState} from './states/game' class Game extends Phaser.Game { diff --git a/webpack.config.js b/webpack.config.js index fd532ba..50c5348 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -14,6 +14,9 @@ module.exports = { ] }, devtool: 'cheap-source-map', + resolve: { + extensions: ['', '.ts', '.js'] + }, output: { pathinfo: true, path: path.resolve(__dirname, 'dist'),