mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-17 14:18:24 +01:00
[ticket/16414] fix errors in gulpjs
PHPBB3-16414
This commit is contained in:
parent
907ed34d51
commit
ce97002307
16
gulpfile.js
16
gulpfile.js
@ -3,16 +3,16 @@
|
||||
const del = require('del');
|
||||
const gulp = require('gulp');
|
||||
const autoprefixer = require('gulp-autoprefixer');
|
||||
const sass = require('gulp-sass');
|
||||
// const sass = require('gulp-sass');
|
||||
const rename = require('gulp-rename');
|
||||
const sourcemaps = require('gulp-sourcemaps');
|
||||
const cssnano = require('cssnano');
|
||||
const postcss = require('gulp-postcss');
|
||||
const sorting = require('postcss-sorting');
|
||||
const atimport = require('postcss-import');
|
||||
const torem = require('postcss-pxtorem');
|
||||
// const torem = require('postcss-pxtorem');
|
||||
const sortOrder = require('./.postcss-sorting.json');
|
||||
const pkg = require('./package.json');
|
||||
// const pkg = require('./package.json');
|
||||
|
||||
// Config
|
||||
const build = {
|
||||
@ -25,8 +25,8 @@ gulp.task('css', () => {
|
||||
.pipe(autoprefixer())
|
||||
.pipe(
|
||||
postcss([
|
||||
sorting(sortOrder)
|
||||
])
|
||||
sorting(sortOrder),
|
||||
]),
|
||||
)
|
||||
.pipe(gulp.dest(build.css));
|
||||
|
||||
@ -44,12 +44,12 @@ gulp.task('minify', () => {
|
||||
.pipe(
|
||||
postcss([
|
||||
atimport(),
|
||||
cssnano()
|
||||
])
|
||||
cssnano(),
|
||||
]),
|
||||
)
|
||||
.pipe(rename({
|
||||
suffix: '.min',
|
||||
extname: '.css'
|
||||
extname: '.css',
|
||||
}))
|
||||
.pipe(sourcemaps.write('./'))
|
||||
.pipe(gulp.dest(build.css));
|
||||
|
Loading…
x
Reference in New Issue
Block a user