I'm working with React and Rails and implementing material design in my app. I'm loading the modules using webpack. I have been able to get bootstrap-material-design and moment.js through npm but now, i want to integrate bootstrap material datepicker but i'm unable to use it as i cannot find a way to install it using npm. If a put a offline file in my client/app/javascripts folder and registers it in the webpack, i find the moment not defined error.
If a add a moment.js file in the folder as well, i get ./locale missing error. And when i put the locale folder provided by moment, i get the path error thati'm unable to reso;ve. I can across a similar issue but couldn't find a dsolution.
Thank you for any help. Please let me know if anymore information is required.
P.S.: I cannot include all of these in the assets of rails.