Commit 7e0e102b authored by Philipp Nowinski's avatar Philipp Nowinski
Browse files

[FEATURE] complete css setup

parent 751fa27b
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
var gulp = require('gulp'), var gulp = require('gulp'),
path = require('path'), path = require('path'),
compass = require('gulp-compass'), compass = require('gulp-compass'),
autoprefixer = require('gulp-autoprefixer'),
cssImport = require('gulp-cssimport'),
minifyCss = require('gulp-minify-css'),
argv = require('yargs').argv, argv = require('yargs').argv,
extension = (function() { extension = (function() {
if (typeof argv.ext === 'undefined') { if (typeof argv.ext === 'undefined') {
...@@ -18,8 +21,12 @@ gulp.task('css', function() { ...@@ -18,8 +21,12 @@ gulp.task('css', function() {
return gulp.src(sassPath + '/**/*.scss') return gulp.src(sassPath + '/**/*.scss')
.pipe(compass({ .pipe(compass({
config_file: path.join(extensionPath, 'config.rb'), config_file: path.join(extensionPath, 'config.rb'),
sourcemap: true,
css: cssPath, css: cssPath,
sass: sassPath sass: sassPath
})) }))
.pipe(cssImport())
.pipe(autoprefixer())
.pipe(minifyCss())
.pipe(gulp.dest(cssPath)); .pipe(gulp.dest(cssPath));
}); });
...@@ -6,7 +6,11 @@ ...@@ -6,7 +6,11 @@
}, },
"devDependencies": { "devDependencies": {
"gulp": "^3.8.10", "gulp": "^3.8.10",
"gulp-autoprefixer": "^2.0.0",
"gulp-compass": "^2.0.3", "gulp-compass": "^2.0.3",
"gulp-cssimport": "^1.3.1",
"gulp-minify-css": "^0.3.11",
"yargs": "^1.3.3" "yargs": "^1.3.3"
} }
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment