Microbundle: support microbundle config file

Created on 16 Nov 2018  路  6Comments  路  Source: developit/microbundle

microbundle.config.json microbundle.config.yaml ,etc.

Most helpful comment

It would be much easier to specify names for external packages and other options using the cosmiconfig conventions. While something can be targeted as zero config, I think it's pragmatic to provide an ergonomic way to do this. This is especially true if you have multiple microbundle commands specified in your scripts.

I'd expect to be able to configure most things you can on the CLI from an external configuration.

I'd be happy to provide a PR for it.

All 6 comments

What are you looking to configure? It's supposed to be minimal and zero config

@ForsakenHarmony no-compress锛宻trict锛宖ormat

you can do that with cli

Good defaults and minimal config is great and I'm all for that. 馃憤 Though, wanted to lend a voice of support for config files when there are necessary options, especially yml which lends itself to human readability.

Breathing room makes the configuration more understandable and maintainable. You can leave comments, and more easily transfer settings across projects. It also avoids using negative options (like no-compress), which are harder to understand than positive ones (compress, defaulting to true).

What are you looking to configure? It's supposed to be minimal and zero config

I would like the chance to configure some of what PostCSS is doing. Specifically, whether to use modules, extract true or false and change the generated scope names.

It would be much easier to specify names for external packages and other options using the cosmiconfig conventions. While something can be targeted as zero config, I think it's pragmatic to provide an ergonomic way to do this. This is especially true if you have multiple microbundle commands specified in your scripts.

I'd expect to be able to configure most things you can on the CLI from an external configuration.

I'd be happy to provide a PR for it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

adriengibrat picture adriengibrat  路  4Comments

jlkiri picture jlkiri  路  4Comments

retyui picture retyui  路  4Comments

chrstntdd picture chrstntdd  路  4Comments

rzkhosroshahi picture rzkhosroshahi  路  5Comments