browserify
Advanced tools
Comparing version 0.2.8 to 0.2.9
@@ -12,6 +12,5 @@ var fs = require('fs'); | ||
var src = exports.bundle(opts); | ||
if (!opts.mount) opts.mount = '/browserify.js'; | ||
return function (req, res, next) { | ||
if (req.url.split('?')[0] === opts.mount) { | ||
if (req.url.split('?')[0] === opts.mount || '/browserify.js') { | ||
res.writeHead(200, { | ||
@@ -18,0 +17,0 @@ 'Last-Modified' : modified.toString(), |
{ | ||
"name" : "browserify", | ||
"version" : "0.2.8", | ||
"version" : "0.2.9", | ||
"description" : "Browser-side require() for js directories and npm modules", | ||
@@ -33,3 +33,4 @@ "main" : "./index.js", | ||
"traverse" : ">=0.3.1", | ||
"backbone" : ">=0.3.3" | ||
"backbone" : ">=0.3.3", | ||
"dnode" : ">=0.6.2" | ||
}, | ||
@@ -36,0 +37,0 @@ "author" : { |
@@ -33,3 +33,3 @@ Browserify | ||
server.use(connect.staticProvider(__dirname)); | ||
server.use(connect.static(__dirname)); | ||
server.use(require('browserify')({ | ||
@@ -91,3 +91,3 @@ base : __dirname + '/js', | ||
server.use(connect.staticProvider(__dirname)); | ||
server.use(connect.static(__dirname)); | ||
server.use(require('browserify')({ | ||
@@ -212,1 +212,7 @@ mount : '/browserify.js', | ||
`exists()` and `existsSync()`. Just `require('path')`! | ||
protips | ||
======= | ||
* `npm install jquery-browserify` to have npm and browserify handle your jquery | ||
deployment! |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43914
48
1064
216
5
9