Lightening talk at ElixirLDN '16. Code examples: https://gist.github.com/svileng/87bd85b23586fe166342adcb9831874e
WEBPACKANDCODE-SPLITTING⛏for Phoenix
View Slide
Svilen GospodinovCo-Founder & CTO@svilengEngineers wanted!heresy.io
♥
Brunch Webpack• Small, concise config file• Easier to use and quickerto start with• Long and verbose configuration• Fine-grain control and highlyconfigurableTWO POINT COMPARISON
CODE-SPLITTING
webpack --color --display-chunks --display-modules
plugins: [new webpack.optimize.CommonsChunkPlugin({children: true,async: true})]
/login/dashboard/account
MORE PROFITChunks do not have ?vsn=dwhich prevents caching!
Thank you!@svileng