title: Add Jquery to Vue-Cli 3
body: <p>I'm currently trying to add Jquery to my <code>vue-cli</code> project. I am aware of the missbehaviour it can produce, but anyway; Since there is no <code>build/webpack.base.conf.js</code> anymore I tried editing <code>vue.config.js</code> by adding:</p>
  
  <pre><code> module.exports {
      ...
      chainWebpack: config =&gt; {
      config.plugin('define').tap(definitions =&gt; {
        definitions[0] = Object.assign(definitions[0], {
          $: 'jquery',
          jquery: 'jquery',
          'window.jQuery': 'jquery',
          jQuery: 'jquery',
          _: 'lodash'
        })
        return definitions
      })
    }
     ...
   }
  </code></pre>
  
  <p>or </p>
  
  <pre><code>const webpack = require('webpack')
  
  module.exports {
     ...
   plugins: [
    new webpack.ProvidePlugin({
       $: 'jquery',
       jquery: 'jquery',
       'window.jQuery': 'jquery',
       jQuery: 'jquery'
     })
    ]
     ...
   }
  </code></pre>
  
  <p>Both options don't seem to work. With #1 nothing seems to happen, with #2 I get the compile error; "plugins" is not allowed or 'ProvidePlugin' is unresolved and
  when I try to import jQuery directly in main.js and define the $ operator, jquery stays undefinded when I try to use it.</p>
  
  <p>Big thank you in advance!</p>