我有一个很大的包,需要分成几个块才能低于2MB的PWA限制。从BundleAnalyzerPlugin中我可以看到,尝试将目录、方格和瞬间分割成单独的块/包文件会使我受益。
我尝试过使用import()拆分技术,但无法了解如何使其在Fontawesome中工作。import { faBell, faEyeSlash, faEye} from '@fortawesome/free-solid-svg-icons';
import { faBell as regularBell} from
(C:\agent\_work\_tasks\webpack_6752a610-c2f3-11e6-949e-5d3841f133f1\4.2.0\webpackCompiler\WebpackCompiler.js:37:46)atnext (native)
at C:\agent\_work\_tasks\webpack
/node_modules/@angular/cdk/esm5/a11y.es5.js.AriaDescriber./a11y.es5.js:268:31) at AriaDescriber.push../node_modules/@angular/cdk/esm5/a11y.es5.js.AriaDescriber