Laravel Mix (Webpack) Not Compile to widgets.js
Hello, I ran into an interesting problem. I am using the latest version of Metronic and working with Demo 1 Laravel. I wanted to create a widget of my own, and I tried to register it on widget.js. The path to the file is demo1/js/custom/widgets.js. However, I could not compile the code I wrote with the npm run dev/build/watch commands. I do not encounter any errors during the compilation. I haven't made any changes to any of the files anyway.
A little note: Intro.js and landing.js are compiled in the same folder. Widgets.js occurs in the build target path but is always by default.
- I deleted node_modules and reinstalled everything with the npm install command. The problem is not solved.
- I deleted node_modules and installed the packages with yarn, not npm. Again, the problem is not solved.
- I downloaded the theme from Envato and installed it from scratch, but the problem was not solved.
- I tried to change the elements under the core folder, but it didn't affect anything.
What should I do?
Ex. I want to compile this arrangement and follow it with the watch command in its simplest form.
Hi Islam Saka.
Sorry for the delay. The widgets.js file is being overridden by this file;
If you want to create your own custom js, please create js files in the resources/assets/extended/js/custom/*
This will override assets from the demo folder.