I need to integrate this, but I can't because I don't know how to do the imports. Can you please translate this tutorial into English and correct any grammar and spelling mistakes? Here's the link:
import "datatables.net-editor";
import Editor from "datatables.net-editor-bs5";
Editor(window, $);
Hi,
To achieve that, you can create a separate JS file and SCSS file for your customization. Start by creating a JS file named app.js and a SCSS file named app.scss in the resources/assets/js and resources/assets/sass directories, respectively.
Next, open the webpack.mix.js file and add the following code to include these files in the build:
mix.js('resources/assets/js/app.js', 'public/js')
.sass('resources/assets/sass/app.scss', 'public/css');
After that, run the command npm run dev to compile the assets. This will generate the CSS and JS files in the public directory.
Finally, you can import the generated CSS and JS files from the public folder into your Laravel application. Proceed with the rest of the guide using the customized files.
Please let me know if you need further assistance.
Thanks
Hi,
The tutorial you mentioned, from the website is not created by us. To address any concerns or inquiries regarding the tutorial, I recommend reaching out to the author or the support team mentioned on the website.
In order to assist you further, could you please provide more details about the specific Laravel version you are using? Are you referring to the "laravel_app" or the latest "laravel starterkit" version?
Thanks
I'm referring to the latest version and I know how to implement the package, but I'm not sure how to integrate it with the Laravel starter kit.