mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-11 23:55:16 +01:00
svg4everybody, bundle more js in main file
This commit is contained in:
parent
b5981074f7
commit
9b48c89c3f
@ -54,7 +54,6 @@
|
|||||||
</section>
|
</section>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<script src="/assets/js/CustomElements.min.js"></script>
|
|
||||||
<script src="/assets/js/jquery.min.js"></script>
|
<script src="/assets/js/jquery.min.js"></script>
|
||||||
<script src="/assets/js/kremalicious3.min.js"></script>
|
<script src="/assets/js/kremalicious3.min.js"></script>
|
||||||
|
|
||||||
|
@ -160,11 +160,9 @@ gulp.task('css', function() {
|
|||||||
// Libraries
|
// Libraries
|
||||||
gulp.task('js-libraries', function() {
|
gulp.task('js-libraries', function() {
|
||||||
var jquery = gulp.src('node_modules/jquery/dist/jquery.js'),
|
var jquery = gulp.src('node_modules/jquery/dist/jquery.js'),
|
||||||
picturefill = gulp.src('node_modules/picturefill/dist/picturefill.js'),
|
picturefill = gulp.src('node_modules/picturefill/dist/picturefill.js');
|
||||||
CustomElements = gulp.src('node_modules/webcomponents.js/CustomElements.js'),
|
|
||||||
svg4everybody = gulp.src('node_modules/svg4everybody/svg4everybody.js')
|
|
||||||
|
|
||||||
return merge(jquery, picturefill, CustomElements, svg4everybody)
|
return merge(jquery, picturefill)
|
||||||
.pipe($.uglify())
|
.pipe($.uglify())
|
||||||
.pipe($.rename({
|
.pipe($.rename({
|
||||||
suffix: '.min'
|
suffix: '.min'
|
||||||
@ -175,6 +173,8 @@ gulp.task('js-libraries', function() {
|
|||||||
// Project js
|
// Project js
|
||||||
gulp.task('js-project', function() {
|
gulp.task('js-project', function() {
|
||||||
return gulp.src([
|
return gulp.src([
|
||||||
|
'node_modules/webcomponents.js/CustomElements.js',
|
||||||
|
'node_modules/svg4everybody/svg4everybody.js',
|
||||||
'node_modules/masonry-layout/dist/masonry.pkgd.js',
|
'node_modules/masonry-layout/dist/masonry.pkgd.js',
|
||||||
'node_modules/imagesloaded/imagesloaded.js',
|
'node_modules/imagesloaded/imagesloaded.js',
|
||||||
'bower_components/simple-jekyll-search/dest/jekyll-search.js',
|
'bower_components/simple-jekyll-search/dest/jekyll-search.js',
|
||||||
|
Loading…
Reference in New Issue
Block a user