I have used the static version of this little script for a while, thank you for that.
I am trying to move to Webpack (Encore) but facing some challenges.
In my main app.js, I include:
import cookieAlert from 'bootstrap-cookie-alert';
and in the scss: @import "~bootstrap-cookie-alert";
(could be done in the app.js though)
SassError: File to import not found or unreadable: ~bootstrap-cookie-alert.
...
>> @import "~bootstrap-cookie-alert";
ERROR Failed to compile with 1 errors 12:20:53
This dependency was not found:
* bootstrap-cookie-alert in ./assets/js/app.js
To install it, you can run: npm install --save bootstrap-cookie-alert