By default, the build command in vite always changes the CSS and JS filenames. To have a unique JS and CSS filenames, the following build code can be added in vite.config.ts file. We can also have assetFileNames: `assets/[name].[ext]`. But with this code, the CSS file name is going to be style.css. To update it further,… Continue reading Change JS, CSS, and other asset filenames during build in vite
Adding react to a legacy website
To work with react on a legacy website, we can add it via CDN. Besides, react and react-dom, we need the babel for JSX support and the latest JS features. Finally, add your components/scripts. hello-world.js app.js index.html
HTTP Response Status Codes
HTTP response status codes can be categorized as follows: Informational It ranges from 100 – 199 and is a provisional response. Eg: 100 – continue, 101 – switching protocols Successful It ranges from 200 – 299 and indicates that the request is successfully processed. Eg: 200 – Ok, 201 – created, 202 – accepted, 204… Continue reading HTTP Response Status Codes
Vue 3 and Jest Setup
Install/Update vue cli Make sure you have the latest vue cli version. Run the following command to update it. You can do so with yarn as well. Create a new project using vue cli Running the above command will give you some options to select. Choose vue3 and select the defaults. Jest setup You will… Continue reading Vue 3 and Jest Setup
Upgrading React Native App
Since August 2019, all android apps are required to support 64-bit architecture. While upgrading a react app seems a bit daunting at first, it isn’t that hard. Upgrade the React Native version You can follow the official React Native upgrade method to update your React Native application https://facebook.github.io/react-native/docs/upgrading or you can do it manually comparing… Continue reading Upgrading React Native App