#WEBPACK UNPKG CODE#
This project follows the all-contributors specification. In order to expose the webpack config, I could either eject the CRA project, or use some other modules, such as react-app-rewired, etc. Webpack is a great tool for getting an application out of the door - and optimize the way code gets packaged and transported to users’ browsers (like minimum size, combining many small downloads into one by inlining, eliminating dead code by Tree Shaking, etc.).
Thanks goes to these wonderful people ( emoji key): The resolver should return (or resolve as a Promise) either null or an object with the keys: name, var, url, version. Log whether the library is being served by the cdn or is bundled options.resolverĪllow you to define a custom module resolver, it can either be a function or an npm module. List the modules that will always be bundled (not be served by the cdn) options.verbose However, one can go beyond optimizing the own delivery using Content Delivery Networks (CDN) like CDNJS to download commonly used. List the only modules that should be served by the cdn options.exclude Version: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.6, 0.2.7, 0.2.8, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.3.4. Webpack is a great tool for getting an application out of the door - and optimize the way code gets packaged and transported to users’ browsers (like minimum size, combining many small downloads into one by inlining, eliminating dead code by Tree Shaking, etc.). The extra html-webpack-plugin option cdnModule corresponds to the configuration key that you config inside the webpack-cdn-plugin modules.
Useful when working offline, will fallback to webpack normal behaviour options.envĭetermine if it should load the development or the production version of modules options.only Const DynamicCdnWebpackPlugin = require ( 'dynamic-cdn-webpack-plugin' ) module.