nuxt / create-nuxt-app

Create Nuxt.js App in seconds.
MIT License
3.49k stars 429 forks source link

no css prefix without browserslist #769

Open 86driver opened 3 years ago

86driver commented 3 years ago

if i dont add browserslist in my package.json , create-nuxt-app will not add any css prefix. i think create-nuxt-app should add default browserslist in package.json.

danielroe commented 3 years ago

See my response at https://github.com/nuxt/nuxt.js/issues/9041#issuecomment-808738090. CSS prefixes will be added, but just not for widely supported properties like transition. You can view this codesandbox to confirm that CSS prefixes are added without a browserlist entry in your package.json.

86driver commented 3 years ago

means that if a css properties has supported by most browser, cli will not add any prefix?

another, if i add browserlist options manually, it will effect by my option? @danielroe

86driver commented 3 years ago

if my browser is firefox 18.x. it will not support flex-grow. Due to the above reasons, i think cli shoud add default browserslist in package.json.