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 new to Snowpack (I really dig it so far) and I am wondering what the recommended approach is to create a common CSS/JS module that is shared across pages. I have a lot of third-party dependencies (Bootstrap, jQuery, jQueryUI, FontAwesome, SCSS, etc.) and I really don't want to repeat a large chunk of link and script tags (see below) in each page.
I know how to do it in Webpack, but not in Snowpack. I've read that Snowpack is built using rollup. Is that an option, via a plugin? Is there a notion of a common partial that I can "include"? If not, I think that would be really cool.
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
-
I'm new to Snowpack (I really dig it so far) and I am wondering what the recommended approach is to create a common CSS/JS module that is shared across pages. I have a lot of third-party dependencies (Bootstrap, jQuery, jQueryUI, FontAwesome, SCSS, etc.) and I really don't want to repeat a large chunk of link and script tags (see below) in each page.
I know how to do it in Webpack, but not in Snowpack. I've read that Snowpack is built using rollup. Is that an option, via a plugin? Is there a notion of a common partial that I can "include"? If not, I think that would be really cool.
Example:
snowpack-common-code.txt
Thanks in advance,
John
Beta Was this translation helpful? Give feedback.
All reactions