gzip_disable “msie6”;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6; #压缩级别:1-10,数字越大压缩的越好,时间也越长
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_min_length 256; #gzip压缩最小文件大小,超出进行压缩(自行调节)
gzip_types text/plain text/css application/json application/x-javascript application/javascript text/xml application/xml application/xml+rss text/javascript application/vnd.ms-fontobject application/x-font-ttf font/opentype image/svg+xml image/x-icon;预渲染
复制代码
3.依赖模块采用第三方cdn资源
- 在首页index.html中引入,如:
<script src="[cdn.bootcss.com/vue/2.6.10/…](https://bbs.csdn.net/topics/618166371)">
<script src="[cdn.bootcss.com/vuex/3.0.1/…](https://bbs.csdn.net/topics/618166371)">
<script src="[cdn.bootcss.com/vue-router/…](https://bbs.csdn.net/topics/618166371)">
<script src="[cdn.