external less source maps, autoprefixer
This commit is contained in:
parent
026e05dcee
commit
1a872035e7
10
gulp/less.js
10
gulp/less.js
|
@ -1,10 +1,13 @@
|
||||||
var gulp = require('gulp');
|
var gulp = require('gulp');
|
||||||
|
|
||||||
var less = require('gulp-less');
|
var less = require('gulp-less');
|
||||||
|
var postcss = require('gulp-postcss');
|
||||||
var sourcemaps = require('gulp-sourcemaps');
|
var sourcemaps = require('gulp-sourcemaps');
|
||||||
var print = require('gulp-print');
|
var autoprefixer = require('autoprefixer-core');
|
||||||
var phantom = require('./phantom');
|
|
||||||
var livereload = require('gulp-livereload');
|
var livereload = require('gulp-livereload');
|
||||||
|
|
||||||
|
var print = require('gulp-print');
|
||||||
|
var phantom = require('./phantom');
|
||||||
var paths = require('./paths');
|
var paths = require('./paths');
|
||||||
var errorHandler = require('./errorHandler');
|
var errorHandler = require('./errorHandler');
|
||||||
|
|
||||||
|
@ -55,8 +58,9 @@ gulp.task('less', function() {
|
||||||
ieCompat : true,
|
ieCompat : true,
|
||||||
strictImports : true
|
strictImports : true
|
||||||
}))
|
}))
|
||||||
|
.pipe(postcss([ autoprefixer({ browsers: ['last 2 versions'] }) ]))
|
||||||
.on('error', errorHandler.onError)
|
.on('error', errorHandler.onError)
|
||||||
.pipe(sourcemaps.write())
|
.pipe(sourcemaps.write(paths.dest.content))
|
||||||
.pipe(gulp.dest(paths.dest.content))
|
.pipe(gulp.dest(paths.dest.content))
|
||||||
.pipe(livereload());
|
.pipe(livereload());
|
||||||
});
|
});
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
"gitHead": "9ff7aa1bf7fe38c4c5bdb92f56c8ad556916ed67",
|
"gitHead": "9ff7aa1bf7fe38c4c5bdb92f56c8ad556916ed67",
|
||||||
"readmeFilename": "readme.md",
|
"readmeFilename": "readme.md",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"autoprefixer-core": "5.2.1",
|
||||||
"del": "1.2.0",
|
"del": "1.2.0",
|
||||||
"gulp": "3.9.0",
|
"gulp": "3.9.0",
|
||||||
"gulp-cached": "1.1.0",
|
"gulp-cached": "1.1.0",
|
||||||
|
@ -24,6 +25,7 @@
|
||||||
"gulp-jshint": "1.11.2",
|
"gulp-jshint": "1.11.2",
|
||||||
"gulp-less": "3.0.3",
|
"gulp-less": "3.0.3",
|
||||||
"gulp-livereload": "3.8.0",
|
"gulp-livereload": "3.8.0",
|
||||||
|
"gulp-postcss": "5.1.10",
|
||||||
"gulp-print": "1.1.0",
|
"gulp-print": "1.1.0",
|
||||||
"gulp-replace": "0.5.3",
|
"gulp-replace": "0.5.3",
|
||||||
"gulp-run": "1.6.8",
|
"gulp-run": "1.6.8",
|
||||||
|
|
Loading…
Reference in New Issue