wintersmith-jsbundler

0.1.0 • Public • Published

wintersmith-jsbundler

Wintersmith plugin that follows require calls in javascript and coffeescript files and bundles them.

Uses commonjs-everywhere and escodegen.

Installing

Install globally or locally using npm

npm install [-g] wintersmith-jsbundler

and add wintersmith-jsbundler to your config.json

{
  "plugins": [
    "wintersmith-jsbundler"
  ]
}

Config

Configured by a jsbundler key in your wintersmith config.

Available options are

  • sourceMap - inline source map for bundled files, defaults to true in preview mode; otherwise false.
  • minify - minify output (sourcemaps still work), defaults to true in build mode; otherwise false.

Example config:

{
  "plugins": [
    "wintersmith-jsbundler"
  ]
  "jsbundler": {
    "sourceMap": true,
    "minify": true
  }
}

Running tests

npm install
npm test

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    2

Package Sidebar

Install

npm i wintersmith-jsbundler

Weekly Downloads

2

Version

0.1.0

License

MIT

Last publish

Collaborators

  • jnordberg