Closed Neeraj1005 closed 3 years ago
In my laravel project I have installed this package using npm. And for JS/CSS in laravel we use webpack.... but uder my js file I imported this file but drag and drop is not working. If I used the cdn its working.
require('./dragula');
const mix = require('laravel-mix'); mix.js('resources/js/app.js', 'public/js') .js('resources/js/dragula.js', 'public/js') .sass('resources/sass/app.scss', 'public/css') .sass('resources/sass/dragula.scss', 'public/css') .sourceMaps();
can anyone tells me why isn't working
resources/js/dragula.js
import dragula from 'dragula'; window.dragula = dragula;
In my laravel project I have installed this package using npm. And for JS/CSS in laravel we use webpack.... but uder my js file I imported this file but drag and drop is not working. If I used the cdn its working.
resources/js/dragula.js
webpack.mix.js
can anyone tells me why isn't working