diff --git a/.gitignore b/.gitignore index 484ab76..a8a0c6f 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,4 @@ .DS_Store /public/service-worker.js /public/service-worker.js.map -/public/sprite \ No newline at end of file +/public/images \ No newline at end of file diff --git a/imageMaker.js b/imageMaker.js index 87c0bfe..42ae746 100644 --- a/imageMaker.js +++ b/imageMaker.js @@ -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)); diff --git a/rollup.config.js b/rollup.config.js index a65dcdf..3e742bf 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -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() {