Hello, I've just bought Metronic for my Symfony 6 project. I'd like to integrate Metronic using Webpack Encore with the `npm run build' command. However, in your Symfony example version, you load the CSS and JS files with a PHP script called 'ThemeHelper'.
I've tried importing only the 'assets' folder and the 'package.json' file to compile with Webpack Encore without success.
Can you explain how to install Metronic using Webpack Encore?
thanks in advance
Hi
Apologies for the delay in getting back to you. Here's a suggestion to integrate Metronic with Webpack Encore in your Symfony project:
Import the Keenthemes assets from /symfony/starterkit/_keenthemes/src/sass/style.scss into /symfony/starterkit/webpack.config.js. You can add it in the section addEntry
.
The encore_entry_link_tags
and encore_entry_script_tags
functions are already added in the /symfony/starterkit/templates/layout/master.html.twig
file. These functions are essential for including the compiled CSS and JS files from Webpack Encore.
However, please note that, currently, we do not provide full integration of Keenthemes assets into the default Symfony Webpack Encore configuration. Therefore, you might encounter some challenges in this process. We recommend reaching out to our support team or checking the Keenthemes documentation for any updates or further guidance on integrating Metronic with Symfony using Webpack Encore.
If you need any more assistance or have additional questions, feel free to ask. We're here to help!
Thanks