JSPM

docpad-plugin-bowerrequirejs

2.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q29103F

DocPad plugin that wires-up installed Bower components into RequireJS config

Package Exports

  • docpad-plugin-bowerrequirejs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (docpad-plugin-bowerrequirejs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

bower-requirejs Plugin for DocPad

DocPad plugin that wires-up installed Bower components into RequireJS config

Useful for statically generated assets

Why?

Assuming you've installed jquery via bower, like so:

bower install jquery

and set it as a dependency in one of your AMD modules:

define(['jquery'], function($) {
  console.log('hooray I have jquery available: ' + $);
});

If you're using r.js optimizer to bundle your JS files and you want jquery to be part of a bundle, you'd have to provide it's path in rjsConfig file.

This plugin does that automagically

Install

npm install docpad-plugin-bowerrequirejs --save-dev

History

You can discover the history inside the History.md file

License

MIT: sergey.mit-license.org