scriptPilot / app-framework

Applications for any device with HTML, CSS and JavaScript - free and open source!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

v3 - add 'static' folder to build

tiptronic opened this issue · comments

Add script to allow for a 'static' folder, which gets added to the build-folder without modifications.

@tiptronic - Which kind of static files you want to use / what is the use case behind? For images please find here the docs: https://github.com/scriptPilot/app-framework/blob/v3/docs/development-images.md

Parcel already has the ability to copy over static folders:
https://www.npmjs.com/package/parcel-plugin-static-files-copy

Static folders can include tons of files you won't load initially... So your link to development-images.md is moot.

Just add the mentioned parcel-plugin and that's it (btw. I understand you want to stay PWA-safe, but for a 'real-world' app, that's not going to work -> think about linking some REST services to your archived assets)