Skip to content

Commit

Permalink
🔧 CSS minify
Browse files Browse the repository at this point in the history
  • Loading branch information
syon committed Jun 11, 2017
1 parent 033662c commit f4e694c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/vendor/octicons/octicons.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions gulpfile.js
Expand Up @@ -3,6 +3,7 @@ var gulpsmith = require('gulpsmith');
var gulp_front_matter = require('gulp-front-matter');
var del = require('del');
var concat = require('gulp-concat');
var minifyCSS = require('gulp-clean-css');
var runSequence = require('run-sequence');

var DEST_DIR = './refills';
Expand Down Expand Up @@ -30,6 +31,7 @@ gulp.task('css-concat', () => {
`${DEST_DIR}/assets/app.css`,
])
.pipe(concat('bundle.css'))
.pipe(minifyCSS())
.pipe(gulp.dest(`${DEST_DIR}/assets`));
});

Expand Down
2 changes: 1 addition & 1 deletion layouts/layout.jade
Expand Up @@ -5,7 +5,7 @@ html(lang="ja")
block title_ogp
meta(charset="utf-8")
meta(name="viewport" content="initial-scale=1, width=device-width")
link(rel="stylesheet" href="#{site.basepath}/assets/vendor/octicons/octicons.css")
link(rel="stylesheet" href="#{site.basepath}/assets/vendor/octicons/octicons.min.css")
link(rel="stylesheet" href="//fonts.googleapis.com/css?family=Italianno|Lato:400,700,900|Merriweather:400,400italic,700,700italic")
link(rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css")
link(rel="stylesheet" href="#{site.basepath}/assets/bundle.css")
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -11,6 +11,7 @@
"del": "^2.2.2",
"foreman": "^2.0.0",
"gulp": "^3.9.1",
"gulp-clean-css": "^3.4.1",
"gulp-cli": "^1.3.0",
"gulp-concat": "^2.6.1",
"gulp-front-matter": "^1.3.0",
Expand Down

0 comments on commit f4e694c

Please sign in to comment.