i am trying to include slick plugin into magento 2 through custom theme by requirejs but pub/static/_requirejs folder + files are not being generated on code deploy. file structure is following:
- /app/design/frontend/Vendor_Name/Theme_Name/requirejs-config.js
- /app/design/frontend/Vendor_Name/Theme_Name/web/js/slick.js and slick.min.js
- /app/design/frontend/Vendor_Name/Theme_Name/web/css/source/vendor/slick.less and slick-theme.less
Code for requirejs-config.js is as follows:
`var config = {
paths: {
slick:'js/slick'
},
shim: {
slick: {
deps: ['jquery']
}
}
};`
This is not a duplicate question, i have not found any solution on internet in last two days. Do let me know if any thing else needed regarding this question if it is not clear. I have followed this tutorial: https://inchoo.net/magento-2/magento-2-slick-carousel/
but i am stuck on point 7 as "requirejs-config.js" is not getting included may be because pub/static/_requirejs folder is not being generated on deploy
php bin/magento setup:static-content:deploy -f
Please help me as i am stuck on this issue from last 2 days