JeremyFagis / dropify

Override your input files with style — Demo here : http://jeremyfagis.github.io/dropify
MIT License
974 stars 399 forks source link

How to work with webback and dropify? #113

Closed jpcmf closed 4 years ago

jpcmf commented 4 years ago

Dropify works with webpack? I need add to my webpack config the dropify plugin but it's not working. This is my config and when I try to call the plugin $('.dropify').dropify(); it says it's no available.

module.exports = {
  entry: {
    app: './src/js/app.js',
    vendor: [
      'jquery',
      'popper.js',
      'bootstrap',
      'inputmask',
      'dropify',
    ],
  },
jpcmf commented 4 years ago

Forget about it. I just add to my app.js require('dropify'); and now it's working.