1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-09-24 04:44:59 +00:00

Add "interactive" tutorial for first level

This commit is contained in:
tobspr
2020-06-01 21:14:12 +02:00
parent 91351d2f79
commit cef07dec56
21 changed files with 274 additions and 22 deletions

View File

@@ -5,7 +5,7 @@ const path = require("path");
const nonImageResourcesGlobs = ["../res/**/*.woff2", "../res/*.ico", "../res/**/*.webm"];
// Globs for ui resources
const imageResourcesGlobs = ["../res/**/*.png", "../res/**/*.svg", "../res/**/*.jpg"];
const imageResourcesGlobs = ["../res/**/*.png", "../res/**/*.svg", "../res/**/*.jpg", "../res/**/*.gif"];
function gulptasksImageResources($, gulp, buildFolder) {
// Lossless options
@@ -17,6 +17,10 @@ function gulptasksImageResources($, gulp, buildFolder) {
$.imagemin.optipng({
optimizationLevel: 3,
}),
$.imageminGifsicle({
optimizationLevel: 3,
colors: 128,
}),
];
// Lossy options
@@ -36,6 +40,10 @@ function gulptasksImageResources($, gulp, buildFolder) {
$.imagemin.optipng({
optimizationLevel: 3,
}),
$.imageminGifsicle({
optimizationLevel: 3,
colors: 128,
}),
];
// Where the resources folder are
@@ -124,6 +132,7 @@ function gulptasksImageResources($, gulp, buildFolder) {
path.join(buildFolder, "res", "ui", "**", "*.png"),
path.join(buildFolder, "res", "ui", "**", "*.jpg"),
path.join(buildFolder, "res", "ui", "**", "*.svg"),
path.join(buildFolder, "res", "ui", "**", "*.gif"),
],
{ read: false }
)