create-nuxt-app icon indicating copy to clipboard operation
create-nuxt-app copied to clipboard

no css prefix without browserslist

Open 86driver opened this issue 4 years ago • 3 comments

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.

86driver avatar Apr 06 '21 05:04 86driver

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.

danielroe avatar Apr 08 '21 08:04 danielroe

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 avatar Apr 08 '21 09:04 86driver

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.

86driver avatar Apr 08 '21 09:04 86driver