Browserify - 将html5shiv添加到bundle.js

时间:2014-12-06 06:07:10

标签: browserify html5shiv

我正在尝试使用Browserify - 但捆绑'html5shiv.js'似乎不起作用。

这是我的package.json文件

{
  "name": "Node_Sports_Lineup",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node main.js",
    "test": "mocha tests"
  },
  "dependencies": {
    "body-parser": "~1.0.0",
    "cookie-parser": "~1.0.1",
    "debug": "~0.7.4",
    "ejs": "*",
    "express": "^3.17.5",
    "express-generator": "^4.9.0",
    "express-session": "*",
    "jade": "*",
    "mongodb": "*",
    "mongoskin": "*",
    "monk": "*",
    "morgan": "~1.0.0",
    "serve-favicon": "~2.1.3",
    "passport": "*",
    "passport-local": "*",
    "connect-flash": "*",
    "mongoose": "*",
    "mocha": "*",
    "request": "*",
    "busboy": "*",
    "busboy-body-parser": "*",
    "mongoose-session": "*",
    "mongoose-validate": "*",
    "passport-linkedin": "*",
    "util": "*",
    "nodemailer": "*",
    "crypto": "*",
    "uniq": "*",
    "jquery":"*",
    "underscore":"*",
    "backbone":"*",
    "bootstrap":"*",
    "html5shiv":"*",
    "respond":"*"
  },
  "engines": {
    "node": "*"
  },
  "devDependencies": {
    "grunt": "^0.4.5",
    "grunt-contrib-connect": "^0.9.0",
    "grunt-contrib-watch": "^0.6.1",
    "grunt-open": "^0.2.3",
    "grunt-typescript": "^0.4.4",
    "gulp": "^3.8.10",
    "gulp-typescript": "^2.3.0"
  }
}

在我的另一个文件中,我需要它就像其他一切一样

// browserDependencies.js

var uniq = require('uniq');
var jquery = require('jquery');
var underscore = require('underscore');
var backbone = require('backbone');
var bootstrap = require('bootstrap');
var html5shiv = require('html5shiv');
var respond = require('respond');

可以像这样以其他方式使用html5shiv吗?

0 个答案:

没有答案