lightningcss icon indicating copy to clipboard operation
lightningcss copied to clipboard

Use browserslist entry in package.json with lightningcss-cli

Open makkabi opened this issue 3 years ago • 1 comments

When using the lightningcss-cli, the only way to provide a browserslist target seems to be the --target option, while the browserslist entry in package.json (and also a .browserslistrc file) is beeing ignored. This means having to duplicate the browserslist target, but it would be much nicer if the lightningcss-cli would use the single definition in package.json like many other tools. The --target option could override the entry in package.json.

makkabi avatar Sep 16 '22 18:09 makkabi

Looks like this could be a duplicate of #281

toastal avatar Sep 18 '22 08:09 toastal

I'll see if I can fix that.

LeoniePhiline avatar Oct 24 '22 12:10 LeoniePhiline

@LeoniePhiline if you do, could you look at #281 too ($PWD/.browserslistrc)? If someone is using the Rust binary without npm, it would be weird to include a package.json just for browserslist.

toastal avatar Oct 25 '22 01:10 toastal