I have the following javascript links and other custom js files:
<script src="/assets/js/popper.min.js"></script>
<script src="/assets/js/moment.min.js"></script>
<script src="/assets/js/custom.js"></script>
How do I add them to my app.js webpack file?
I tried:
import './js/popper.min.js';
import './js/moment.min.js';
import './js/custom/js';
Then when i run npm run dev , i get the following error:
Module build failed: Module not found:
"./assets/js/moment.min.js" contains a reference to the file "./locale".
This file can not be found, please check it for typos or update it if the file got moved.
How do i solve this?
Thanks