1

Do not add root slash on inject

This commit is contained in:
Alex Yatskov 2014-09-30 18:40:42 +09:00
parent 62278566c1
commit 46bfcf8d54
2 changed files with 15 additions and 15 deletions

View File

@ -51,14 +51,14 @@ gulp.task('css', function() {
gulp.task('html_debug', function() {
var sources = gulp.src(paths.js.concat(paths.css), { read: false });
return gulp.src(paths.html)
.pipe(inject(sources))
.pipe(inject(sources, { addRootSlash: false }))
.pipe(gulp.dest('./'));
});
gulp.task('html_release', function() {
var sources = gulp.src(['./dist/*.js', './dist/*.css'], { read: false });
return gulp.src(paths.html)
.pipe(inject(sources))
.pipe(inject(sources, { addRootSlash: false }))
.pipe(gulp.dest('./'));
});

View File

@ -4,10 +4,10 @@
<title>Reactive Search</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<!-- inject:css -->
<link rel="stylesheet" href="/bower_components/bootstrap/dist/css/bootstrap.css">
<link rel="stylesheet" href="/bower_components/bootstrap/dist/css/bootstrap-theme.css">
<link rel="stylesheet" href="/bower_components/bootstrap-select/dist/css/bootstrap-select.css">
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css">
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap-theme.css">
<link rel="stylesheet" href="bower_components/bootstrap-select/dist/css/bootstrap-select.css">
<link rel="stylesheet" href="css/style.css">
<!-- endinject -->
</head>
<body>
@ -163,15 +163,15 @@
</div>
</div>
<!-- inject:js -->
<script src="/bower_components/underscore/underscore.js"></script>
<script src="/bower_components/handlebars/handlebars.js"></script>
<script src="/bower_components/jquery/dist/jquery.js"></script>
<script src="/bower_components/fabric/dist/fabric.js"></script>
<script src="/bower_components/tinycolor/tinycolor.js"></script>
<script src="/bower_components/bootstrap/dist/js/bootstrap.js"></script>
<script src="/bower_components/bootstrap-select/dist/js/bootstrap-select.js"></script>
<script src="/js/application.js"></script>
<script src="/js/grapher.js"></script>
<script src="bower_components/underscore/underscore.js"></script>
<script src="bower_components/handlebars/handlebars.js"></script>
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/fabric/dist/fabric.js"></script>
<script src="bower_components/tinycolor/tinycolor.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.js"></script>
<script src="bower_components/bootstrap-select/dist/js/bootstrap-select.js"></script>
<script src="js/application.js"></script>
<script src="js/grapher.js"></script>
<!-- endinject -->
</body>
</html>