Skip to content
This repository has been archived by the owner on Jun 14, 2020. It is now read-only.

Commit

Permalink
Switched to gulp-clean-css (closes #104)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsebastien committed Mar 11, 2016
1 parent 9fef8b0 commit 054233f
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 10 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
* 0.5.2
* added tsx support for watches (#110)
* replaced gulp-minify-css by gulp-clean-css
* 0.5.1
* fixed issue with the production build (404 at first render)
* 0.5.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ Check out [gulp-inline-source](https://www.npmjs.com/package/gulp-inline-source)
* gulp-inline-source: inline scripts & stylesheets: https://www.npmjs.com/package/gulp-inline-source
* gulp-jshint: JavaScript code quality checker plugin for gulp that uses JSHint: https://www.npmjs.com/package/gulp-jshint
* gulp-minify-html: minify html with minimize: https://www.npmjs.com/package/gulp-minify-html
* gulp-minify-css: minify css with clean-css: https://www.npmjs.com/package/gulp-minify-css
* gulp-clean-css: minify css with clean-css: https://www.npmjs.com/package/gulp-clean-css
* gulp-replace: string replace plugin for gulp: https://www.npmjs.com/package/gulp-replace
* gulp-sass: sass plugin for gulp: https://www.npmjs.com/package/sass
* node-sass: used by gulp-sass and normally not needed but added to fix an issue with sourcemaps: https://github.com/sindresorhus/gulp-autoprefixer/issues/10
Expand Down
3 changes: 3 additions & 0 deletions UPGRADE.MD
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Upgrade guide

## From 0.5.1 to 0.5.2
No modification mandatory with this release.

## From 0.5.0 to 0.5.1
No modification mandatory with this release.

Expand Down
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "modern-web-dev-build",
"description": "Modern Web Development Build.",
"version": "0.5.1",
"version": "0.5.2",
"author": {
"name": "Sebastien Dubois",
"email": "[email protected]",
Expand All @@ -28,10 +28,6 @@
"es2015",
"sass"
],
"devDependencies": {
"jasmine": "2.4.x",
"karma-jasmine": "0.3.x"
},
"dependencies": {
"autoprefixer": "6.3.x",
"babel-core": "6.5.x",
Expand Down Expand Up @@ -62,7 +58,7 @@
"gulp-jscs": "3.0.x",
"gulp-jscs-stylish": "1.3.x",
"gulp-jshint": "1.12.x",
"gulp-minify-css": "1.2.x",
"gulp-clean-css": "2.0.x",
"gulp-minify-html": "1.0.x",
"gulp-nice-package": "1.1.x",
"gulp-notify": "2.2.x",
Expand Down Expand Up @@ -98,6 +94,12 @@
"karma-jspm": "2.0.x",
"karma-systemjs": "0.10.x"
},
"devDependencies": {
"jasmine": "2.4.x",
"karma-jasmine": "0.3.x",
"typescript": "1.8.x",
"nodemon": "1.8.x"
},
"peerDependencies": {
"babel-core": "6.5.x",
"gulp": "3.9.x",
Expand Down
2 changes: 1 addition & 1 deletion src/gulp/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ let autoprefixerBrowsers = [
"bb >= 10"
];

let minifyCss = { // https://www.npmjs.com/package/gulp-minify
let minifyCss = { // https://github.com/jakubpawlowicz/clean-css#how-to-use-clean-css-api
keepBreaks: false, // no problem here
keepSpecialComments: true, // necessary for licensing
compatibility: false, // no problem here
Expand Down
2 changes: 1 addition & 1 deletion src/gulp/tasks/styles-dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import sass from "gulp-sass";
import cssimport from "gulp-cssimport";
import concat from "gulp-concat";
import csso from "gulp-csso";
import minifyCss from "gulp-minify-css";
import minifyCss from "gulp-clean-css";
import size from "gulp-size";

class StylesDistTaskLoader extends AbstractTaskLoader {
Expand Down
2 changes: 1 addition & 1 deletion src/gulp/tasks/styles-vendor-dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import sass from "gulp-sass";
import cssimport from "gulp-cssimport";
import concat from "gulp-concat";
import csso from "gulp-csso";
import minifyCss from "gulp-minify-css";
import minifyCss from "gulp-clean-css";
import size from "gulp-size";
//import debug from "gulp-debug";

Expand Down

0 comments on commit 054233f

Please sign in to comment.