From 1a872035e732b216a3db9ac9143ee861360e113d Mon Sep 17 00:00:00 2001 From: Keivan Beigi Date: Sat, 15 Aug 2015 23:52:33 -0700 Subject: [PATCH] external less source maps, autoprefixer --- gulp/less.js | 10 +++++++--- package.json | 2 ++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gulp/less.js b/gulp/less.js index fef218f45..d7672b5b3 100644 --- a/gulp/less.js +++ b/gulp/less.js @@ -1,10 +1,13 @@ var gulp = require('gulp'); + var less = require('gulp-less'); +var postcss = require('gulp-postcss'); var sourcemaps = require('gulp-sourcemaps'); -var print = require('gulp-print'); -var phantom = require('./phantom'); +var autoprefixer = require('autoprefixer-core'); var livereload = require('gulp-livereload'); +var print = require('gulp-print'); +var phantom = require('./phantom'); var paths = require('./paths'); var errorHandler = require('./errorHandler'); @@ -55,8 +58,9 @@ gulp.task('less', function() { ieCompat : true, strictImports : true })) + .pipe(postcss([ autoprefixer({ browsers: ['last 2 versions'] }) ])) .on('error', errorHandler.onError) - .pipe(sourcemaps.write()) + .pipe(sourcemaps.write(paths.dest.content)) .pipe(gulp.dest(paths.dest.content)) .pipe(livereload()); }); diff --git a/package.json b/package.json index a1517b5d6..a9ab175b7 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "gitHead": "9ff7aa1bf7fe38c4c5bdb92f56c8ad556916ed67", "readmeFilename": "readme.md", "dependencies": { + "autoprefixer-core": "5.2.1", "del": "1.2.0", "gulp": "3.9.0", "gulp-cached": "1.1.0", @@ -24,6 +25,7 @@ "gulp-jshint": "1.11.2", "gulp-less": "3.0.3", "gulp-livereload": "3.8.0", + "gulp-postcss": "5.1.10", "gulp-print": "1.1.0", "gulp-replace": "0.5.3", "gulp-run": "1.6.8",