Skip to content

Commit

Permalink
feat(nuxt): add bvCSS option. resolves #1351.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooya Parsa committed Nov 17, 2017
1 parent 142d517 commit 3a7517f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions nuxt/index.js
Expand Up @@ -19,15 +19,17 @@ module.exports = function nuxtBootstrapVue (moduleOptions) {
this.options.css.unshift('bootstrap/dist/css/bootstrap.css')
}

// Add library styles
if (moduleOptions.bvCSS !== false) {
this.options.css.push('bootstrap-vue/dist/bootstrap-vue.css')
}

// Register plugin
this.addPlugin({
src: resolve(__dirname, 'plugin.js'),
fileName: 'bootstrap-vue.js',
moduleOptions
})

// Add library styles
this.options.css.push('bootstrap-vue/dist/bootstrap-vue.css')
}

module.exports.meta = require('../package.json')

0 comments on commit 3a7517f

Please sign in to comment.