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
};
});