Skip to content

Commit

Permalink
added 600 mimetype
Browse files Browse the repository at this point in the history
  • Loading branch information
erikyo committed Aug 27, 2017
1 parent 40dd0a3 commit 29a2426
Show file tree
Hide file tree
Showing 8 changed files with 14,329 additions and 634 deletions.
6,018 changes: 5,744 additions & 274 deletions dist/mime-icons.css

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions dist/mime-icons.min.css

Large diffs are not rendered by default.

Binary file modified dist/mime-icons.min.css.gz
Binary file not shown.
29 changes: 16 additions & 13 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,18 @@ var pkg = JSON.parse(fs.readFileSync('package.json'));
// Task options
var opts = {
destPath: './',
buildPath: './dist/',
concatName: 'mime-icons.css',

autoprefixer: {
browsers: ['last 1 versions'],
cascade: false
dev: {
browsers: ['> 1%', 'last 2 versions', 'Firefox > 20', 'iOS > 5', 'ie > 7'],
cascade: false
},
build: {
browsers: ['last 1 versions'],
cascade: false
}
},

minRename: {
Expand All @@ -43,7 +50,6 @@ var opts = {
cssnano: {reduceIdents: {keyframes: false}},

banner: [
'@charset "UTF-8";\n',
'/*!',
' * <%= name %> -<%= homepage %>',
' * Version - <%= version %>',
Expand All @@ -64,17 +70,14 @@ gulp.task('build', function () {

.pipe(sass(opts.sass))
.on('error', notify.onError('Error: <%= error.message %>'))
.pipe(header(opts.banner, pkg))
.pipe(gulp.dest('./dist/'))
.pipe(gulp.dest(opts.buildPath))
.pipe(postcss([
autoprefixer({
browsers: ['> 1%', 'last 2 versions', 'Firefox > 20', 'iOS > 5', 'ie > 7'],
cascade: false
}),
autoprefixer(opts.autoprefixer.build),
cssnano(opts.cssnano)
]))
.pipe(header(opts.banner, pkg))
.pipe(rename(opts.minRename))
.pipe(gulp.dest('./dist/'));
.pipe(gulp.dest(opts.buildPath));
});

gulp.task('sass', function () {
Expand All @@ -85,17 +88,17 @@ gulp.task('sass', function () {
.pipe(sass(opts.sass))
.on('error', notify.onError('Error: <%= error.message %>'))
.pipe(postcss([
autoprefixer(opts.autoprefixer)
autoprefixer(opts.autoprefixer.dev)
]))
.pipe(sourcemaps.write(opts.destPath))
.pipe(gulp.dest(opts.destPath));

});

gulp.task('compress', function() {
gulp.src('./dist/mime-icons.min.css')
gulp.src(opts.buildPath + 'mime-icons.min.css')
.pipe(gzip())
.pipe(gulp.dest('./dist/'));
.pipe(gulp.dest(opts.buildPath));
});

gulp.task('watch', function () {
Expand Down
Loading

0 comments on commit 29a2426

Please sign in to comment.