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

9.4.0 • Public • Published

@financial-times/dotcom-build-base

This package exports a Webpack plugin to configure it with the ability to build client-side assets to Page Kit conventions.

Getting started

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

npm install --save-dev @financial-times/dotcom-build-base

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

const { PageKitBasePlugin } = require('@financial-times/dotcom-build-base');

module.exports = {
	plugins: [
		new PageKitBasePlugin()
	]
}

This package enhances your Webpack config to do:

Development and production modes

In production mode the generated output will be optimised, file names hashed, and full source maps, gzip and brotli compressed assets generated. Production mode is the default.

To enable development mode you can use the --mode Webpack flag. This will disable several optimisations in favour of providing faster builds and rebuilds. See the Webpack mode documentation for further information about modes.

webpack --mode=development

Readme

Keywords

none

Package Sidebar

Install

npm i @financial-times/dotcom-build-base

Weekly Downloads

355

Version

9.4.0

License

MIT

Unpacked Size

164 kB

Total Files

6

Last publish

Collaborators

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