相关疑难解决方法(0)

为什么捆绑优化不再是HTTP/2中的问题

我读了捆绑systemjs文档的部分内容,在HTTP/2中不再需要捆绑优化:

在HTTP/2上,这种方法可能更为可取,因为它允许在浏览器中单独缓存文件,这意味着不再需要对包进行优化.

我的问题:

  1. 这意味着我们在使用HTTP/2时不需要考虑捆绑脚本或其他资源?
  2. HTTP/2中有什么功能可以启用此功能?

bundling-and-minification http2

34
推荐指数
4
解决办法
5510
查看次数

如何连接ES6模块?

如何连接ES6模块?

var foo = 2; // This would normally be scoped to the module.
export function Bar() {}

// ...concatenate...

import { Bar } from 'javascripts/bar' //This file no longer exists in the concatenated scenario.
export function Bam() {}
Run Code Online (Sandbox Code Playgroud)

javascript module ecmascript-6 es6-modules

21
推荐指数
2
解决办法
8296
查看次数