Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3768101
D2932.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D2932.diff
View Options
diff --git a/gulpfile.babel.js b/gulpfile.babel.js
--- a/gulpfile.babel.js
+++ b/gulpfile.babel.js
@@ -13,6 +13,7 @@
import named from 'vinyl-named';
import uncss from 'uncss';
import autoprefixer from 'autoprefixer';
+import imagemin from 'gulp-imagemin';
var sass = require('gulp-sass')(require('sass'));
@@ -26,8 +27,10 @@
const { PORT, UNCSS_OPTIONS, PATHS, TUNNEL } = loadConfig();
function loadConfig() {
+ const unsafe = require('js-yaml-js-types').all;
+ const schema = yaml.DEFAULT_SCHEMA.extend(unsafe);
let ymlFile = fs.readFileSync('config.yml', 'utf8');
- return yaml.load(ymlFile);
+ return yaml.load(ymlFile, {schema});
}
// Build the "dist" folder by running all of the below tasks
@@ -133,8 +136,16 @@
// In production, the images are compressed
function images() {
return gulp.src('src/assets/img/**/*')
- .pipe($.if(PRODUCTION, $.imagemin([
- $.imagemin.jpegtran({ progressive: true }),
+ .pipe($.if(PRODUCTION, imagemin([
+ imagemin.gifsicle({interlaced: true}),
+ imagemin.mozjpeg({quality: 85, progressive: true}),
+ imagemin.optipng({optimizationLevel: 5}),
+ imagemin.svgo({
+ plugins: [
+ {removeViewBox: true},
+ {cleanupIDs: false}
+ ]
+ })
])))
.pipe(gulp.dest(PATHS.dist + '/assets/img'));
}
diff --git a/package.json b/package.json
--- a/package.json
+++ b/package.json
@@ -16,35 +16,36 @@
"motion-ui": "^2.0.4"
},
"devDependencies": {
- "@babel/core": "^7.1.2",
- "@babel/preset-env": "^7.1.0",
- "@babel/register": "^7.0.0",
- "autoprefixer": "^9.1.5",
- "babel-loader": "^8.0.4",
- "browser-sync": "^2.10.0",
- "gulp": "^4.0.0",
+ "@babel/core": "^7.15.15",
+ "@babel/preset-env": "^7.15.6",
+ "@babel/register": "^7.15.3",
+ "autoprefixer": "^10.4.14",
+ "babel-loader": "^9.1.2",
+ "browser-sync": "^2.27.5",
+ "gulp": "^4.0.2",
"gulp-babel": "^8.0.0",
- "gulp-clean-css": "^3.3.1",
- "gulp-cli": "^2.0.1",
- "gulp-concat": "^2.5.2",
- "gulp-extname": "^0.2.0",
- "gulp-if": "^2.0.0",
- "gulp-imagemin": "^4.1.0",
- "gulp-load-plugins": "^1.1.0",
- "gulp-postcss": "^8.0.0",
+ "gulp-clean-css": "^4.3.0",
+ "gulp-cli": "^2.3.0",
+ "gulp-concat": "^2.6.1",
+ "gulp-extname": "^0.2.2",
+ "gulp-if": "^3.0.0",
+ "gulp-imagemin": "^7.1.0",
+ "gulp-load-plugins": "^2.0.8",
+ "gulp-postcss": "^9.0.1",
"gulp-sass": "^5.1.0",
- "gulp-sourcemaps": "^2.6.4",
+ "gulp-sourcemaps": "^3.0.0",
"gulp-uglify": "^3.0.1",
- "js-yaml": "^3.4.6",
+ "js-yaml": "^4.1.0",
+ "js-yaml-js-types": "^1.0.1",
"panini": "^1.3.0",
- "rimraf": "^2.4.3",
+ "rimraf": "^3.0.2",
"sass": "^1.60.0",
- "style-sherpa": "^1.0.0",
- "uncss": "^0.16.2",
+ "style-sherpa": "^1.0.2",
+ "uncss": "^0.17.3",
"vinyl-named": "^1.1.0",
- "webpack": "^4.20.2",
- "webpack-stream": "^5.1.1",
- "yargs": "^12.0.2"
+ "webpack": "^5.76.3",
+ "webpack-stream": "^7.0.0",
+ "yargs": "^17.7.1"
},
"repository": {
"type": "git",
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 06:23 (10 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2258088
Default Alt Text
D2932.diff (3 KB)
Attached To
Mode
D2932: Upgrade dependencies
Attached
Detach File
Event Timeline
Log In to Comment