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 am setting up snowpack with webpack and have a usecase where the output index.html is not a full html page as it will be injected into another CMS tool and be consumed.
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
-
Hi everyone,
I am setting up snowpack with webpack and have a usecase where the output index.html is not a full html page as it will be injected into another CMS tool and be consumed.
The index.html I require will just be
Is there a way to easily override the
emitHTMLFiles
function without forking? https://github.com/pikapkg/snowpack/blob/master/packages/%40snowpack/plugin-webpack/plugin.js#L53 ? I'm using a customsnowpack.config.js
but this function seems to run last after webpack is finished executing.I guess one solution here is a way to pass an optional custom function in.
Beta Was this translation helpful? Give feedback.
All reactions