progressbar.js错误TypeError:$(...)。metisMenu不是函数

时间:2017-03-16 10:50:04

标签: javascript jquery progress-bar browserify bundling-and-minification

我试图让progressbar.js启动并运行但我在控制台TypeError: $(...).metisMenu is not a function中收到此错误 我从bower切换到browesrify,我在某一点上使用了metisMenu但是我删除了metisMenu文件夹并将其从package.json中删除了

为什么浏览器捆绑 metisMenu进入我的Browserify文件findem.js?

var ProgressBar = require('progressbar');

var circle = new ProgressBar.Circle('#progress', {
    color: 'red',
    duration: 3000,
    easing: 'easeInOut'
});
circle.animate(1);

Browserify命令

browserify js/main.js -o js/findem.js -d

的package.json

{
  "name": "thewhiteFox",
  "title": "thewhiteFox",
  "version": "0.1.4",
  "homepage": "http://thewhitefox.ninja/",
  "author": "theWhiteFox",
  "devDependencies": {
    "browser-sync": "^2.13.0",
    "gulp": "^3.9.1",
    "gulp-clean-css": "^2.0.10",
    "gulp-header": "^1.8.7",
    "gulp-image-optimization": "^0.1.3",
    "gulp-less": "^3.1.0",
    "gulp-rename": "^1.2.2",
    "gulp-uglify": "^1.5.4"
  },
  "dependencies": {
    "progressbar": "^1.1.1"
  }
}

0 个答案:

没有答案