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
Is it possible to configure Snowpack so that the CSS files are transformed independently from JavaScript i.e. an input CSS file lands in a specified output directory and is served as text/css and not application/javascript?
Right now the only way seems to be importing CSS in JavaScript files and them those files are suffixed with .proxy.js (e.g. main.css -> main.css.proxy.js) and served as application/javascript.
If CSS files could be served as text/css, they would be, for example, visible in CSS tab in Dev Tools.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is it possible to configure Snowpack so that the CSS files are transformed independently from JavaScript i.e. an input CSS file lands in a specified output directory and is served as
text/css
and notapplication/javascript
?Right now the only way seems to be importing CSS in JavaScript files and them those files are suffixed with
.proxy.js
(e.g.main.css
->main.css.proxy.js
) and served asapplication/javascript
.If CSS files could be served as
text/css
, they would be, for example, visible in CSS tab in Dev Tools.Beta Was this translation helpful? Give feedback.
All reactions