[Poi] Build and Analyze Your JavaScript Bundles with Poi
2018-01-03 21:10
621 查看
Ever wonder where those extra KB in your bundle are coming from? This lesson walks you through running Poi's build process. Then we'll add a bundle analyzer to find where you may be able to trim down on your file size.
Install:
Build project:
poi.config.js:
Run with analyzer:
Install:
npm i -D webpack-bundle-analyzer
Build project:
poi build
poi.config.js:
const BundleAnalyzer = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; module.exports = (options) => ({ webpack(config) { if(options.analyze) { config.plugins.push( new BundleAnalyzer() ) } return config; } })
Run with analyzer:
poi build --analyze
相关文章推荐
- Bring Your Charts to Life with HTML5 Canvas and JavaScript
- Build Your Own Video Community With Lighttpd And FlowPlayer (Debian Etch)
- [Poi] Use Poi to Build an Index.js with Modern JavaScript Features
- Build your Dojo-based Javascript Application and deployed via CDN
- Your build settings specify a provisioning profile with the UUID “xxxx" however, no such provisionin
- 高级H5游戏开发(Advanced game design with html5 and javascript )读书学习笔记(1)--es6相关
- how to build your web application on spring boot and deploy it on heroku
- Effective buffer management and scheduling of bundles in delay tolerant networks with finite buffers
- 【转发】Build Squid with SSL Bump and ICAP Client
- Defend Your Apps and Critical User Info with Defensive Coding Techniques
- Beginning JavaScript with DOM Scripting and Ajax 电子书 DownLoad 下载
- 更新证书或svn更新代码错误:Your build settings specify a provisioning profile with the UUID‘XXX’
- Post-Mortem Debugging Your Application with Minidumps and Visual Studio .NET
- Your build settings specify a provisioning profile with the UUID, no provisioning profile was
- 项目管理实践【四】自动编译和发布网站【Using Visual Studio with Source Control System to build and publish website automatically】
- Your build settings specify a provisioning profile with the UUID, no provisioning profile was
- Your build settings specify a provisioning profile with the UUID, no provisioning profile was
- Customizing Your Build With Gradle
- This app has been built with an incorrect configuration. Please configure your build for VectorDrawa
- 转:Build Your First JavaScript Library