mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-30 18:15:11 +00:00
get page SPA solved
This commit is contained in:
parent
133f6d0171
commit
8af00274bc
@ -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
|
||||
};
|
||||
});
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user