bower-webpack-plugin icon indicating copy to clipboard operation
bower-webpack-plugin copied to clipboard

jQuery Plugins

Open robinsonlam opened this issue 8 years ago • 0 comments

I'm having trouble figuring out how to add libraries that are added to jQuery, for example MaterializeCSS.

This is the error I'm getting:

Uncaught TypeError: $(...).dropdown is not a function

My plugins in my config looks like this:

plugins: [
    new BowerWebpackPlugin(),
    new webpack.ProvidePlugin({
      $: 'jquery',
      Vue: 'vue',
      VueResource: 'vue-resource',
      VueRouter: 'vue-router'
    })
  ],

robinsonlam avatar Feb 29 '16 03:02 robinsonlam