diff --git a/src/app.js b/src/index.js similarity index 99% rename from src/app.js rename to src/index.js index 7f02aff..9946413 100644 --- a/src/app.js +++ b/src/index.js @@ -108,7 +108,7 @@ angular.module('app', [ address="$ctrl.address" state="$ctrl.state"> - `, + `, controller: AppController }); diff --git a/webpack.config.js b/webpack.config.js index c2fecca..8e0af88 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -10,7 +10,7 @@ var TARGET = process.env.npm_lifecycle_event; const commonConfig = { context: path.resolve(__dirname, 'src'), entry: [ - './app.js' + './index.js' ], output: { path: path.join(__dirname, 'dist'), @@ -110,7 +110,7 @@ switch (TARGET) { config.entry = [ 'webpack-dev-server/client?http://localhost:3000', 'webpack/hot/only-dev-server', - './app.js' + './index.js' ]; }