Permalink
Browse files

Modified gulpfile.js for minify app.css

  • Loading branch information...
blue-goheimochi committed Feb 27, 2015
1 parent 731e6df commit 97286b72c1b423cce26211c7158ed745bbfa477e
Showing with 78 additions and 69 deletions.
  1. +9 −1 gulpfile.js
  2. +1 −68 public_html/css/app.css
  3. +68 −0 resource/css/app.css
View
@@ -1,4 +1,5 @@
var gulp = require('gulp');
var minifyCSS = require('gulp-minify-css');
var browserSync = require('browser-sync');
gulp.task('browser-sync', function(){
@@ -10,7 +11,14 @@ gulp.task('browser-sync', function(){
});
});
gulp.task('default', ['browser-sync'], function(){
gulp.task('minify-css', function () {
gulp.src(['./resource/css/app.css'])
.pipe(minifyCSS())
.pipe(gulp.dest('./public_html/css')
);
});
gulp.task('default', ['browser-sync','minify-css'], function(){
gulp.watch([
'./public_html/css/*.css',
'./public_html/js/*.js'
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -0,0 +1,68 @@
* {
margin:0;
padding: 0;
}
body {
color: #363947;
font-size: 15px;
}
header {
background: #FFFFFF;
border-bottom: 2px solid #F27398;
}
header h1 {
padding: 10px;
font-size: 24px;
}
nav {
width: 100%;
height: 40px;
background: #363947;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
clear: both;
}
nav ul {
display: block;
float: right;
clear: both;
}
nav ul li {
display: block;
text-align: center;
float: left;
}
nav ul li a {
font-weight: bold;
color: #FFFFFF;
padding: 10px;
display: block;
text-decoration: none;
}
article {
padding: 10px;
}
article h2 {
margin-bottom: 10px;
padding-bottom: 5px;
border-bottom: 2px solid #58BE89;
}
footer {
margin-top: 10px;
border-top: 3px solid #0E7AC4;
padding: 15px;
text-align: center;
}
footer p {
font-size: 15px;
}

0 comments on commit 97286b7

Please sign in to comment.