FredKSchott / snowpack

ESM-powered frontend build tool. Instant, lightweight, unbundled development. ✌️
https://www.snowpack.dev
MIT License
19.48k stars 921 forks source link

💡 RFC : Add an option to skip css and svg files in final build #3876

Closed ghost closed 2 years ago

ghost commented 2 years ago

Motivation

I am developing an web app with a few css and svg files. This is my first project in snowpack. Everything seems to work perfectly but when I am building the app all raw css and svg files are being added to final build making the bundle size larger. Everything gets loaded by proxy files and works with out the source files. So I am scanning the build directory and deleting them with a script.

Proposed solution

Possible solutions

Detailed design

No response

Open questions

No response

Help make it happen!