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

[FEATURE] complete css setup

parent 751fa27b
......@@ -3,6 +3,9 @@
var gulp = require('gulp'),
path = require('path'),
compass = require('gulp-compass'),
autoprefixer = require('gulp-autoprefixer'),
cssImport = require('gulp-cssimport'),
minifyCss = require('gulp-minify-css'),
argv = require('yargs').argv,
extension = (function() {
if (typeof argv.ext === 'undefined') {
......@@ -18,8 +21,12 @@ gulp.task('css', function() {
return gulp.src(sassPath + '/**/*.scss')
.pipe(compass({
config_file: path.join(extensionPath, 'config.rb'),
sourcemap: true,
css: cssPath,
sass: sassPath
}))
.pipe(cssImport())
.pipe(autoprefixer())
.pipe(minifyCss())
.pipe(gulp.dest(cssPath));
});
......@@ -6,7 +6,11 @@
},
"devDependencies": {
"gulp": "^3.8.10",
"gulp-autoprefixer": "^2.0.0",
"gulp-compass": "^2.0.3",
"gulp-cssimport": "^1.3.1",
"gulp-minify-css": "^0.3.11",
"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