mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
get page SPA solved
This commit is contained in:
@@ -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}',
|
files: ['dist/**/*.{html,htm,css,js}',
|
||||||
'node_modules/ng2-alfresco-core/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}'],
|
'node_modules/ng2-alfresco-viewer/dist/**/*.{html,htm,css,js}'],
|
||||||
|
|
||||||
reloadDelay: 1000
|
reloadDelay: 1000
|
||||||
};
|
});
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
"start": "npm run tslint && typings install && concurrently \"npm run tsc:w\" \"license-check\" \"npm run serve\" ",
|
"start": "npm run tslint && typings install && concurrently \"npm run tsc:w\" \"license-check\" \"npm run serve\" ",
|
||||||
"tsc": "tsc",
|
"tsc": "tsc",
|
||||||
"tsc:w": "tsc -w",
|
"tsc:w": "tsc -w",
|
||||||
"serve": "browser-sync start --server -c browser-sync-config.js",
|
"serve": "node browser-sync-config.js",
|
||||||
"typings": "typings",
|
"typings": "typings",
|
||||||
"tslint": "npm run tslint-src && npm run tslint-root",
|
"tslint": "npm run tslint-src && npm run tslint-root",
|
||||||
"tslint-src": "tslint -c tslint.json app/**/*.ts",
|
"tslint-src": "tslint -c tslint.json app/**/*.ts",
|
||||||
|
Reference in New Issue
Block a user