Category: webpack

Symfony’s webpack include built files in template without any php in project

In project i am using Symfony’s Webpack Encore and i am following this instructions. Now i want include files from /public/build. So add links to index.html on final javascript and css files. But i want enableVersioning() too whitch means every…

Symfony app.js & app.css in public/bundles/easyadmin not loading in production environnement

Console log Network status Files tree Hello , I can’t figure out why the app.js and app.css located in public/bundles/easyadmin can’t be loaded. In developpement environnement there is no problem, it only happens in production environnement. I can access to…

datepicker is not a function bootstrap-datepicker Symfony, webpack

I am stuck with following issue: I have installed bootstrap-datepicker : “dependencies”: { “bootstrap”: “^4.4.1”, “bootstrap-datepicker”: “^1.9.0”, “fontawesome”: “^5.6.3”, “jquery”: “3.4.1”, “popper”: “^1.0.1” } My webpack.config: .addEntry(‘app’, [‘./assets/css/global.scss’, ‘./assets/js/app.js’ ]) .addEntry(‘datepicker’, [ ‘./assets/js/datepicker.js’ ]) datepicker.js : // js require(‘bootstrap-datepicker’); require(‘bootstrap-datepicker/js/locales/bootstrap-datepicker.fr’);…