+++ /dev/null
-<html>
-
-<head>
- <title>Angular 2 Quickstart</title>
- <script src="src/jspm_packages/system.js"></script>
- <script src="src/config.js"></script>
-</head>
-
-<body>
- Angular 2 Quickstart
- <my-app></my-app>
- <script>
- System.import('./src/app');
- </script>
-</body>
-
-</html>
default:
console.log('development mode');
- app.use(express.static(currentDir + '/'));
+ app.use(express.static(currentDir + '/src/'));
// Deep linking (exclude XHR requests)
app.use('/((?!api)).*', express.static(currentDir + '/src/index.html'));
--- /dev/null
+<html>
+
+<head>
+ <title>Angular 2 Quickstart</title>
+ <script src="jspm_packages/system.js"></script>
+ <script src="config.js"></script>
+</head>
+
+<body>
+ Angular 2 Quickstart
+ <my-app></my-app>
+ <script>
+ System.import('app');
+ </script>
+</body>
+
+</html>