mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-16 09:51:38 +02:00
JIRA: ONOS-6657 Also added css into the browsersync tasks within gulp Change-Id: Ibcf342c89b8e1eae131f5cb3694e3632bc134534
29 lines
757 B
JavaScript
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(); |