You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the Press-wind starter theme and I noticed that when using TypeScript as input (changing main.js to main.ts in vite.config.js) the production does not enqueue the built js asset in front end.
I did set the is_ts option to true but the problem seems to be on PWVite.php on line 214. set_script_prod function only checks if the src in manifest.json contains .js but as the input is main.ts the src value is main.ts.
I'm not sure if this should be fixed in set_script_prod or should I be able to fix this in my vite.config.js so that it will print main.js as src in manifest.json when I'm running the build?
Here's how my manifest.json looks like after building:
I'm using the Press-wind starter theme and I noticed that when using TypeScript as input (changing
main.js
tomain.ts
in vite.config.js) the production does not enqueue the built js asset in front end.I did set the
is_ts
option totrue
but the problem seems to be on PWVite.php on line 214.set_script_prod
function only checks if thesrc
in manifest.json contains.js
but as the input is main.ts thesrc
value ismain.ts
.I'm not sure if this should be fixed in
set_script_prod
or should I be able to fix this in my vite.config.js so that it will printmain.js
assrc
in manifest.json when I'm running the build?Here's how my manifest.json looks like after building:
The text was updated successfully, but these errors were encountered: