Vue CLI CSS pre-processor option: dart-sass VS node-sass?

Update 09/17/2020: As this answer gets up-votes every day, I thought maybe it is worth diving deeper into this topic. Considering sass-lang website: Dart Sass is the primary implementation of Sass, which means it gets new features before any other implementation. It’s fast, easy to install, and it compiles to pure JavaScript which makes it … Read more

How to use Google fonts in React.js?

In some sort of main or first loading CSS file, just do: @import url(‘https://fonts.googleapis.com/css?family=Source+Sans+Pro:regular,bold,italic&subset=latin,latin-ext’); You don’t need to wrap in any sort of @font-face, etc. the response you get back from Google’s API is ready to go and lets you use font families like normal. Then in your main React app JavaScript, at the top … Read more

Webpack build failing with ERR_OSSL_EVP_UNSUPPORTED [duplicate]

I was able to fix it via: export NODE_OPTIONS=–openssl-legacy-provider sachaw’s comment to Node.js v17.0.0 – Error starting project in development mode #30078 But they say they fixed it: ijjk’s comment to Node.js v17.0.0 – Error starting project in development mode #30078: Hi, this has been updated in v11.1.3-canary.89 of Next.js, please update and give it … Read more

What does “The code generator has deoptimised the styling of [some file] as it exceeds the max of “100KB”” mean?

This is related to compact option of Babel compiler, which commands to “not include superfluous whitespace characters and line terminators. When set to ‘auto’ compact is set to true on input sizes of >100KB.” By default its value is “auto”, so that is probably the reason you are getting the warning message. See Babel documentation. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)