To start with the second question: is it possible to load assets from a nested folder structure? I have a variety of static image assets for my game and I had them categorized by type in subfolders. For instance: "./assets/images/loot/crystal_dagger.png" and so on. I've been trying various different ways of structuring the images array to reach the subfolders, with no luck. Looking at the src for the plugin, it seems to expect a single images folder. Is there a way to do this, or do I need to ditch my subfolders?
As for the error: when loading my spritesheets, which are in a single "./assets/spritesheets" folder, I get a JSON.parse error. I removed everything from the manifest except the spritesheets to be sure. In Chrome it gives me this:
I'm new to webpack, so I'm wondering if it could be my config. I'm using this template, which incorporates your plugin. Here's my webpack.config and a sample of my manifest with just the spritesheets, and a sample json file:
To start with the second question: is it possible to load assets from a nested folder structure? I have a variety of static image assets for my game and I had them categorized by type in subfolders. For instance: "./assets/images/loot/crystal_dagger.png" and so on. I've been trying various different ways of structuring the images array to reach the subfolders, with no luck. Looking at the src for the plugin, it seems to expect a single images folder. Is there a way to do this, or do I need to ditch my subfolders?
As for the error: when loading my spritesheets, which are in a single "./assets/spritesheets" folder, I get a JSON.parse error. I removed everything from the manifest except the spritesheets to be sure. In Chrome it gives me this: I'm new to webpack, so I'm wondering if it could be my config. I'm using this template, which incorporates your plugin. Here's my webpack.config and a sample of my manifest with just the spritesheets, and a sample json file: