connect-fuse
Connect middleware for the fuse library.
Last updated 7 years ago by smebberson .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install connect-fuse 
SYNC missed versions from official npm registry.

connect-fuse

connect-fuse is a connect middlware wrapper around Fuse. Fuse is a tool to fuse multiple JavaScript or HTML files into one.

Installation

To use fuse within Express, you must install fuse-connect. fuse-connect is a connect middlware wrapper for Fuse.

[sudo] npm install fuse-connect --save

Usage

Fuse uses inline comment-based directives to determine which files you'd like to fuse. You can use @depends, @import or @include as the directive.

For usage guidelines, see the Fuse readme.

With express

Make sure you've installed fuse-connect. You can then include fuse-connect to bind requests to particular files to fuse, so that they're automatically updated upon request.

var fuse = require('fuse-connect');
var filesToFuse = [
	{src: '/path/to/src-file.js', dest: '/path/to/dest-file.js'},
	{src: '/path/to/src-file.html', dest: '/path/to/dest-file.html'}
];

// add fuse-connect to the middleware
app.use(fuse.middleware(filesToFuse));

Current Tags

  • 0.0.2                                ...           latest (7 years ago)

2 Versions

  • 0.0.2                                ...           7 years ago
  • 0.0.1                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |