Skip to content

include tailwind css in bundle js

How could I include tailwind css in bundle js ? this is the an example with vue 3 and tailwind 3 https://github.com/musashiM82/vue-webpack. running npm run build , it creates 3 files: app.js ABOUTPAGE.js app.6cba1802.css I want to include app.6cba1802.css into app.js, so the result should be: app.js ABOUTPAGE…

.push( ) is not updating the variable

I am trying to push the data that is set using setData function to datas[ ]. I am able to push the data once, but the 2nd time when I push it, instead of being stored at datas[1], it replaces datas[0]. What am I doing wrong here. Thank you in advance. Answer App is getting re-rendered whenever you change stat…

Attach an event handler to an object literal

I have an object literal to open a websocket connection. this is a simplified version of it: i can initialize the connection with: now i want to attach an eventhandler to websocket, which is called when onmessage is fired. like this: is there a way to achieve this? Answer Just return the connection at the end…