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
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
Uh oh!
There was an error while loading. Please reload this page.
-
如果想在development模式使用按需引入,但是在production模式和staging模式使用cdn方式引入,该如何配置vite.config.js和main.js呢?有没有示例配置?
另外:现在使用按需引入时,还需要单独引入这些样式
这些在区分环境用cdn引入时,如何动态配置?
再就是文档中的cdn引入方式
使用了这种调用 vant.showToast('Message'); 那之前按需引入时的代码都需要修改成这样么,之前都是showToast('Message')这样直接调用的,是不是每个调用的位置都要区分环境,生产的就用vant.showToast开发的就用showToast?
Beta Was this translation helpful? Give feedback.
All reactions