get page SPA solved

This commit is contained in:
Eugenio Romano 2016-06-08 18:20:46 +01:00
parent 133f6d0171
commit 8af00274bc
2 changed files with 11 additions and 3 deletions

View File

@ -1,4 +1,12 @@
module.exports = {
var browserSync = require("browser-sync").create();
var historyApiFallback = require('connect-history-api-fallback')
browserSync.init({
server: {
baseDir: './',
middleware: [ historyApiFallback() ]
},
files: ['dist/**/*.{html,htm,css,js}',
'node_modules/ng2-alfresco-core/dist/**/*.{html,htm,css,js}',
@ -10,4 +18,4 @@ module.exports = {
'node_modules/ng2-alfresco-viewer/dist/**/*.{html,htm,css,js}'],
reloadDelay: 1000
};
});

View File

@ -7,7 +7,7 @@
"start": "npm run tslint && typings install && concurrently \"npm run tsc:w\" \"license-check\" \"npm run serve\" ",
"tsc": "tsc",
"tsc:w": "tsc -w",
"serve": "browser-sync start --server -c browser-sync-config.js",
"serve": "node browser-sync-config.js",
"typings": "typings",
"tslint": "npm run tslint-src && npm run tslint-root",
"tslint-src": "tslint -c tslint.json app/**/*.ts",