Skip to content

Commit

Permalink
Update gulpfile.js, packege.json
Browse files Browse the repository at this point in the history
  • Loading branch information
itchief committed Jun 29, 2019
1 parent 73b61ad commit 90f0e8b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 23 deletions.
4 changes: 4 additions & 0 deletions .gitignore
@@ -0,0 +1,4 @@
node_modules/
.vscode/
assets/build/
package-lock.json
16 changes: 1 addition & 15 deletions gulpfile.js
@@ -1,17 +1,5 @@
'use strict';

/* параметры для gulp-autoprefixer */
var autoprefixerList = [
'Chrome >= 45',
'Firefox ESR',
'Edge >= 12',
'Explorer >= 10',
'iOS >= 9',
'Safari >= 9',
'Android >= 4.4',
'Opera >= 30'
];

/* пути к исходным файлам (src), к готовым файлам (build), а также к тем, за изменениями которых нужно наблюдать (watch) */
var path = {
build: {
Expand Down Expand Up @@ -85,9 +73,7 @@ gulp.task('css:build', function () {
.pipe(plumber()) // для отслеживания ошибок
.pipe(sourcemaps.init()) // инициализируем sourcemap
.pipe(sass()) // scss -> css
.pipe(autoprefixer({ // добавим префиксы
browsers: autoprefixerList
}))
.pipe(autoprefixer()) // добавим префиксы
.pipe(gulp.dest(path.build.css))
.pipe(rename({ suffix: '.min' }))
.pipe(cleanCSS()) // минимизируем CSS
Expand Down
16 changes: 8 additions & 8 deletions package.json
Expand Up @@ -9,25 +9,25 @@
"url": "git://github.com/itchief/gulp-project-bootstrap-4.git"
},
"dependencies": {
"jquery": "^3.3.1",
"jquery": "^3.4.1",
"popper.js": "^1.14.7",
"bootstrap": "^4.3.1"
},
"devDependencies": {
"browser-sync": "^2.26.3",
"gulp": "^4.0.0",
"gulp-autoprefixer": "^6.0.0",
"gulp-cache": "^1.1.1",
"gulp-clean-css": "^4.0.0",
"browser-sync": "^2.26.7",
"gulp": "^4.0.2",
"gulp-autoprefixer": "^6.1.0",
"gulp-cache": "^1.1.2",
"gulp-clean-css": "^4.2.0",
"gulp-rimraf": "^0.2.2",
"gulp-imagemin": "^5.0.3",
"gulp-imagemin": "^6.0.0",
"gulp-plumber": "^1.2.1",
"gulp-rigger": "^0.5.8",
"gulp-sass": "^4.0.2",
"gulp-sourcemaps": "^2.6.5",
"gulp-uglify": "^3.0.2",
"imagemin-jpeg-recompress": "^6.0.0",
"imagemin-pngquant": "^7.0.0",
"imagemin-pngquant": "^8.0.0",
"gulp-rename": "^1.4.0"
}
}

0 comments on commit 90f0e8b

Please sign in to comment.