lukeed / pwa

(WIP) Universal PWA Builder

Home Page:https://pwa.cafe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feat: Use webpack-chain?

IniZio opened this issue · comments

Currently the presets use direct assign, I think adding webpack-chain might make it even more reliable?

Maybe! I've heard of it a few times but never really looked into it. I know Vue CLI uses it, probably for this purpose.

The thing is I think I need my own abstraction layer. I'm not sure when, but I'd like to make it possible to build apps of similar caliber with Rollup behind the scenes. This was an original (2016) goal and is still something I'd like to stick to.

Whether that is a hard swap or lives behind a feature flag, the config should still work for both engines.

This is all probably a long ways off, but in the meantime, presets are always applied first in the config-pipeline. And they're also controlled releases, so they'll always work.

The risk stands with the end-user's custom config. Presumably any changes they make are somewhat educated, otherwise there will be instant feedback via webpack errors

Lastly, community-driven plugins and presets aren't a thing yet. I'd like to control the package composition for a little while...at least until I figure out what I'm gonna do about that abstraction layer for config^

Thanks!

Thanks for the response, this is definitely the tool i will use on next project :). Guess I will close this for now.