https://github.com/csbun/fis-preprocessor-browserify
A browserify preprocessor for fis
https://github.com/csbun/fis-preprocessor-browserify
Last synced: about 2 months ago
JSON representation
A browserify preprocessor for fis
- Host: GitHub
- URL: https://github.com/csbun/fis-preprocessor-browserify
- Owner: csbun
- License: mit
- Created: 2015-11-24T10:18:16.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-10T03:43:16.000Z (over 9 years ago)
- Last Synced: 2025-02-08T01:15:59.068Z (3 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fis-preprocessor-browserify
A browserify preprocessor 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):
```javascript
fis.config.set('settings.preprocessor.browserify', {
// browserify opts
browserify: {
debug: true
},
});
```### fis2
```javascript
fis.config.set('modules.preprocessor.js', 'browserify');
fis.config.set('roadmap.path', [
{
// entry js
reg: 'views/**/*.js',
// `isLayout` should be `TRUE`
isLayout: true
}, {
// other js `isLayout` != `TRUE`
reg: '**/*.js'
}
]);
```### fis3
```javascript
fis.match('index.js', {
release: '$0',
preprocessor: fis.plugin('browserify')
});
```