路由懒加载
like this:
import Workbench from 'components/workbench/workbench' Index from 'components/index/index'
const Workbench = () => import('../components/workbench/workbench')
其余不变
服务端开启gzip
开启http缓存 强缓存和协商缓存搞起来
牛皮!完美!
路由懒加载
like this:
import Workbench from 'components/workbench/workbench' Index from 'components/index/index'
const Workbench = () => import('../components/workbench/workbench')
其余不变
服务端开启gzip
开启http缓存 强缓存和协商缓存搞起来
牛皮!完美!
本文标题:vue webpack打包线上优化
本文链接:https://www.haomeiwen.com/subject/xbwhrctx.html
网友评论