Open celtic34fr opened 1 year ago
It's not supposed to work like that, i think.. Webpack is for bolt itself. The themes should be agnostic, and separate from that. What are you trying to achieve?
Ok, but that shouldn't interfere with the mechanics implemented by Bolt. Do I understand that using Webpack breaks everything I can do to use a theme for the front end of my project? Because before installing Webpack, I was able to use a theme that I develop from the theme skeleton that comes with Bolt. What do you recommend doing if you want to integrate Webpack into a Bolt project? Should you rather work without Webpack to have access to all of Bolt's features?
Hello @celtic34fr, i don't know if you still need help but I followed that documentation and all works fine for me : https://docs.boltcms.io/5.2/howto/encore-setup
I hope this could help you :)
I installed and activated Webpack Encore (last version) according to the documentation (for Bolt CMS 5.0). After, I create a new Controller with its template. I want to base this template on the _master.twig template from the base-2021 theme. But the application cannot find the base-2021 theme resources (CSS and JavaScript files). Even if I specify the name of a package or not in the asset directive of TWIG, I always have the same result: with package name: