An open API service indexing awesome lists of open source software.

https://github.com/csbun/fis-prepackager-browserify

A browserify postprocessor for fis
https://github.com/csbun/fis-prepackager-browserify

Last synced: about 2 months ago
JSON representation

A browserify postprocessor for fis

Awesome Lists containing this project

README

        

# fis-prepackager-browserify

A browserify prepackager for [fis](http://fex-team.github.io/fis-site/) / [Scrat](http://scrat.io) with default transforms:

- [debowerify](https://www.npmjs.com/package/debowerify)

## Usage

You can use all [browserify opts](https://github.com/substack/node-browserify#browserifyfiles--opts) and [html-minifier options](https://github.com/kangax/html-minifier#options-quick-reference):

```javascript
fis.config.set('settings.prepackager.browserify', {
// browserify opts
browserify: {
debug: true
},
// html-minifier Options
'html-minifier': {
removeComments: true,
collapseWhitespace: true,
conservativeCollapse: true,
preserveLineBreaks: true
}
});
fis.config.set('modules.prepackager', 'browserify');
fis.config.set('roadmap.path', [
{
// source js
reg: 'src/**/*.js',
// `isLayout` should be `TRUE`
isLayout: true
},
{
// other js `isLayout` != `TRUE`
reg: 'server/**/*.js'
}
]);
```