-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nuxt如何设置babel-plugin-import #347
Comments
@sorrycc 遇到同样的问题,有好多人说解决了,其实他们只是引入了所有的压缩 css。 |
遇到同样的问题,研究了一下午,无果。 |
不需要用 babel-plugin-import 了,antd 和 webpack 现在都能支持 tree shaking。 |
我最近也在用nuxt, 按需加载我试了搞定了,你们试下我的方法, |
build: { |
我拿一個只有單個 page 的專案來比較,就結論來說,其總大小為
這個案子沒有自訂 components
|
请问题解决了吗?求解决方案 |
build: {
} |
这又不是ant-design |
nuxt使用ui组件ant-design-vue,其他包都使用的最新版,尝试设置less-loader 和css-loader,都无法加载css或者报错。尝试了一天,无果。
The text was updated successfully, but these errors were encountered: