Steven Burrows | a145e10 | 2017-06-16 13:37:50 -0400 | [diff] [blame] | 1 | import gulp from 'gulp'; |
| 2 | import concat from 'gulp-concat'; |
| 3 | import BundleResources from '../helpers/bundleResources'; |
| 4 | |
| 5 | const GUI_BASE = '../../web/gui/src/main/webapp/'; |
| 6 | const bundleFiles = [ |
| 7 | 'app/onos.css', |
| 8 | 'app/onos-theme.css', |
| 9 | 'app/common.css', |
| 10 | 'app/fw/**/*.css', |
| 11 | 'app/view/**/*.css', |
| 12 | ]; |
| 13 | |
| 14 | const task = gulp.task('bundle-css', function () { |
| 15 | return gulp.src(BundleResources(GUI_BASE, bundleFiles)) |
| 16 | .pipe(concat('onos.css')) |
| 17 | .pipe(gulp.dest(GUI_BASE + '/dist/')); |
| 18 | }); |
| 19 | |
| 20 | export default task; |