rename folder to images

This commit is contained in:
Daniel Bulant 2021-08-25 18:05:37 +02:00
parent 1c629032d1
commit 46831c9137
3 changed files with 3 additions and 3 deletions

2
.gitignore vendored
View file

@ -5,4 +5,4 @@
.DS_Store
/public/service-worker.js
/public/service-worker.js.map
/public/sprite
/public/images

View file

@ -38,7 +38,7 @@ export function makeImages({ folders, production }) {
webp.grant_permission();
const base = path.join(__dirname, "images/png");
const out = path.join(__dirname, "public/sprite");
const out = path.join(__dirname, "public/images");
await fs.mkdir(out, { recursive: true });
const ref = this;
folders = folders.map(folder => path.join(base, folder));

View file

@ -9,7 +9,7 @@ import replace from "@rollup/plugin-replace";
import { makeImages } from './imageMaker';
const production = !process.env.ROLLUP_WATCH;
// List of folders from images/png to convert to webp and save into public/sprite
// List of folders from images/png to convert to webp and save into public/images
const imageFolders = ["angels", "backgrounds", "button", "death", "levels"];
function serve() {