mirror of
https://github.com/danbulant/heaventaker
synced 2026-06-24 01:02:31 +00:00
rename folder to images
This commit is contained in:
parent
1c629032d1
commit
46831c9137
3 changed files with 3 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -5,4 +5,4 @@
|
|||
.DS_Store
|
||||
/public/service-worker.js
|
||||
/public/service-worker.js.map
|
||||
/public/sprite
|
||||
/public/images
|
||||
|
|
@ -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));
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue