Skip to content

Commit

Permalink
Merge pull request Tencent#144 from progrape/master
Browse files Browse the repository at this point in the history
deprecated gulp-minify-css, use gulp-cssnano instead
  • Loading branch information
bear committed Jan 1, 2016
2 parents 1f5eccf + 3215172 commit 4681e97
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 49 deletions.
2 changes: 1 addition & 1 deletion dist/example/example.css

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

43 changes: 3 additions & 40 deletions dist/style/weui.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/style/weui.min.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var gulp = require('gulp');
var less = require('gulp-less');
var header = require('gulp-header');
var tap = require('gulp-tap');
var minify = require('gulp-minify-css');
var nano = require('gulp-cssnano');
var autoprefixer = require('gulp-autoprefixer');
var rename = require('gulp-rename');
var sourcemaps = require('gulp-sourcemaps');
Expand All @@ -29,7 +29,7 @@ gulp.task('styles', ['source'], function () {
this.emit('end');
}))
.pipe(autoprefixer())
.pipe(minify())
.pipe(nano())
.pipe(gulp.dest(dist))
.pipe(browserSync.reload({stream: true}));

Expand Down Expand Up @@ -65,7 +65,7 @@ gulp.task('styles', ['source'], function () {
.pipe(autoprefixer())
.pipe(header(banner, { pkg : pkg } ))
.pipe(gulp.dest(dist))
.pipe(minify())
.pipe(nano())
.pipe(rename(function (path) {
path.basename += '.min';
}))
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "weui",
"version": "0.2.2",
"version": "0.2.3",
"description": "为微信 Web 服务量身设计",
"keywords": [
"weui",
Expand Down Expand Up @@ -31,9 +31,9 @@
"browser-sync": "^2.9.11",
"gulp": "^3.8.10",
"gulp-autoprefixer": "^2.3.1",
"gulp-cssnano": "^2.0.0",
"gulp-header": "^1.7.1",
"gulp-less": "^3.0.2",
"gulp-minify-css": "^0.4.4",
"gulp-rename": "^1.2.2",
"gulp-replace": "^0.5.2",
"gulp-sourcemaps": "^1.6.0",
Expand Down

0 comments on commit 4681e97

Please sign in to comment.