LoginSignup
9
9

More than 5 years have passed since last update.

grunt-bower-installはもう非推奨らしいので

Posted at

grunt-wiredepをインストールする事にした。

まずは、 grunt-bower-install をアンインストール。

$ npm uninstall grunt-bower-install --save-dev

次に、 grunt-wiredep をインストール。

npm install grunt-wiredep --save-dev

Gruntfile.jsの修正も忘れずにっ!

bowerInstall: {
    app: {
        src: ['<%= config.app %>/index.html'],
        exclude: ['bower_components/bootstrap/dist/js/bootstrap.js']
    }
},

// bowerInstallの代わりに grunt.registerTask()では、wiredepを使う様にする。
wiredep: {
    app: {
        src: ['<%= config.app %>/index.html'],
        exclude: ['bower_components/bootstrap/dist/js/bootstrap.js']
    }
},
9
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
9