Add gulp css inject

This commit is contained in:
Norbert Renner 2018-03-03 13:32:02 +01:00
parent 92aafc61d1
commit 6c8e4fddca
2 changed files with 3 additions and 1 deletions

View file

@ -138,7 +138,7 @@ gulp.task('log', function() {
gulp.task('inject', function () {
var target = gulp.src('index.html');
var sources = gulp.src(paths.scripts, { base: '.', read: false });
var sources = gulp.src(paths.scripts.concat(paths.styles), { base: '.', read: false });
return target.pipe(inject(sources, { relative: true }))
.pipe(gulp.dest('.'));

View file

@ -7,7 +7,9 @@
<title>BRouter web client</title>
<!-- inject:css -->
<link rel="stylesheet" href="dist/brouter-web.css" />
<!-- endinject -->
</head>
<body class="flexcolumn">
<nav class="navbar navbar-full navbar-dark bg-inverse">