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

2.6.2 • Public • Published

@financial-times/dotcom-build-bower-resolve

This package exports a Webpack plugin to configure it with a way to find and load dependencies installed with Bower.

Getting started

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

npm install --save-dev @financial-times/dotcom-build-bower-resolve

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

+ const { PageKitBowerResolvePlugin } = require('@financial-times/dotcom-build-bower-resolve')

module.exports {
  "plugins": [
+    new PageKitBowerResolvePlugin()
  ]
}

Once setup, this plugin will enable you to use Bower dependencies in your source code.

Scope

This plugin adds several properties to Webpack's resolve configuration instructing it to look for modules within the bower_components directory and use the bower.json manifest file if present.

This plugin also adds the bower-resolve-webpack-plugin.

Please note that Bower dependencies will be favoured over dependencies installed with npm.

Options

There are currently no additional options for this plugin.

Readme

Keywords

none

Package Sidebar

Install

npm i @financial-times/dotcom-build-bower-resolve

Weekly Downloads

8

Version

2.6.2

License

MIT

Unpacked Size

4.55 kB

Total Files

4

Last publish

Collaborators

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