@financial-times/dotcom-build-code-splitting
TypeScript icon, indicating that this package has built-in type declarations

10.1.0 • Public • Published

@financial-times/dotcom-build-code-splitting

This package exports a Webpack plugin to configure it with code splitting functionality in accordance with the FT.com code splitting strategy.

Getting started

This package is compatible with Node 12+ and is distributed on npm.

npm install --save-dev @financial-times/dotcom-build-code-splitting

After installing the package you must add it to the list of plugins in your project's webpack.config.js configuration file:

+ const { PageKitCodeSplittingPlugin } = require('@financial-times/dotcom-build-code-splitting')

module.export = {
  plugins: [
+    new PageKitCodeSplittingPlugin()
  ]
}

Once setup, this plugin will automatically split your JavaScript code into several separate bundle files based upon the FT.com code splitting strategy.

Options

There are currently no additional options for this plugin.

Readme

Keywords

none

Package Sidebar

Install

npm i @financial-times/dotcom-build-code-splitting

Weekly Downloads

273

Version

10.1.0

License

MIT

Unpacked Size

183 kB

Total Files

21

Last publish

Collaborators

  • robgodfrey
  • robertboulton
  • seraph2000
  • hamza.samih
  • notlee
  • emmalewis
  • aendra
  • the-ft
  • rowanmanning
  • chee
  • alexwilson