Gulpfile ES6
no issue - ES6
This commit is contained in:
parent
2bf64cbffc
commit
406ef78109
1 changed files with 14 additions and 14 deletions
28
gulpfile.js
28
gulpfile.js
|
@ -2,18 +2,18 @@ const {series, watch, src, dest} = require('gulp');
|
||||||
const pump = require('pump');
|
const pump = require('pump');
|
||||||
|
|
||||||
// gulp plugins and utils
|
// gulp plugins and utils
|
||||||
var livereload = require('gulp-livereload');
|
const livereload = require('gulp-livereload');
|
||||||
var postcss = require('gulp-postcss');
|
const postcss = require('gulp-postcss');
|
||||||
var zip = require('gulp-zip');
|
const zip = require('gulp-zip');
|
||||||
var uglify = require('gulp-uglify');
|
const uglify = require('gulp-uglify');
|
||||||
var beeper = require('beeper');
|
const beeper = require('beeper');
|
||||||
|
|
||||||
// postcss plugins
|
// postcss plugins
|
||||||
var autoprefixer = require('autoprefixer');
|
const autoprefixer = require('autoprefixer');
|
||||||
var colorFunction = require('postcss-color-function');
|
const colorFunction = require('postcss-color-function');
|
||||||
var cssnano = require('cssnano');
|
const cssnano = require('cssnano');
|
||||||
var customProperties = require('postcss-custom-properties');
|
const customProperties = require('postcss-custom-properties');
|
||||||
var easyimport = require('postcss-easy-import');
|
const easyimport = require('postcss-easy-import');
|
||||||
|
|
||||||
function serve(done) {
|
function serve(done) {
|
||||||
livereload.listen();
|
livereload.listen();
|
||||||
|
@ -30,7 +30,7 @@ const handleError = (done) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
function css(done) {
|
function css(done) {
|
||||||
var processors = [
|
const processors = [
|
||||||
easyimport,
|
easyimport,
|
||||||
customProperties({preserve: false}),
|
customProperties({preserve: false}),
|
||||||
colorFunction(),
|
colorFunction(),
|
||||||
|
@ -56,9 +56,9 @@ function js(done) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function zipper(done) {
|
function zipper(done) {
|
||||||
var targetDir = 'dist/';
|
const targetDir = 'dist/';
|
||||||
var themeName = require('./package.json').name;
|
const themeName = require('./package.json').name;
|
||||||
var filename = themeName + '.zip';
|
const filename = themeName + '.zip';
|
||||||
|
|
||||||
pump([
|
pump([
|
||||||
src([
|
src([
|
||||||
|
|
Loading…
Reference in a new issue