From 640dc344210fe1d03aaa1617d7b1301a751fe5d0 Mon Sep 17 00:00:00 2001 From: aerze Date: Fri, 23 Dec 2016 00:13:25 -0800 Subject: [PATCH] Updates file path to resolve for no extension --- src/index.ts | 6 +++--- webpack.config.js | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) 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'),