Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jnordberg/wintersmith-jsbundler
CommonJS browser bundler for wintersmith
https://github.com/jnordberg/wintersmith-jsbundler
Last synced: 22 days ago
JSON representation
CommonJS browser bundler for wintersmith
- Host: GitHub
- URL: https://github.com/jnordberg/wintersmith-jsbundler
- Owner: jnordberg
- Created: 2013-05-15T16:49:36.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-05-15T16:50:30.000Z (over 11 years ago)
- Last Synced: 2024-10-19T04:04:29.867Z (25 days ago)
- Language: CoffeeScript
- Size: 109 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
wintersmith-jsbundler
=====================[Wintersmith](https://github.com/jnordberg/wintersmith) plugin that follows
require calls in javascript and coffeescript files and bundles them.Uses [commonjs-everywhere](https://github.com/michaelficarra/commonjs-everywhere)
and [escodegen](https://github.com/Constellation/escodegen).## Installing
Install globally or locally using npm
```
npm install [-g] wintersmith-jsbundler
```and add `wintersmith-jsbundler` to your config.json
```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:
```json
{
"plugins": [
"wintersmith-jsbundler"
]
"jsbundler": {
"sourceMap": true,
"minify": true
}
}
```## Running tests
```
npm install
npm test
```