Steven Burrows 1270c18e06 Topo2: Added Friendly host names
JIRA: ONOS-6657

Also added css into the browsersync tasks within gulp

Change-Id: Ibcf342c89b8e1eae131f5cb3694e3632bc134534
2017-09-14 17:13:49 +00:00

29 lines
757 B
JavaScript

import gulp from 'gulp';
import concat from 'gulp-concat';
import BundleResources from '../helpers/bundleResources';
import { reload } from '../../dev-server';
const GUI_BASE = '../../web/gui/src/main/webapp/';
const bundleFiles = [
'app/onos.css',
'app/onos-theme.css',
'app/common.css',
'app/fw/**/*.css',
'app/view/**/*.css',
];
const task = () => {
gulp.task('bundle-css', function () {
return gulp.src(BundleResources(GUI_BASE, bundleFiles))
.pipe(concat('onos.css'))
.pipe(gulp.dest(GUI_BASE + '/dist/'))
.on('end', () => { reload(); });
});
gulp.task('watch-css', () => {
gulp.watch([GUI_BASE + 'app/**/*.css'], ['bundle-css']);
});
}
export default task();