@@ -63,8 +63,8 @@ state of the current configuration to build a new one:
6363
6464// define the first configuration
6565 Encore
66- .setOutputPath (' public/build/' )
67- .setPublicPath (' /build' )
66+ .setOutputPath (' public/build/first_build/ ' )
67+ .setPublicPath (' /build/first_build ' )
6868 .addEntry (' app' ,' ./assets/js/app.js' )
6969 .addStyleEntry (' global' ,' ./assets/css/global.scss' )
7070 .enableSassLoader ()
@@ -83,8 +83,8 @@ state of the current configuration to build a new one:
8383
8484// define the second configuration
8585 Encore
86- .setOutputPath (' public/build/' )
87- .setPublicPath (' /build' )
86+ .setOutputPath (' public/build/second_build/ ' )
87+ .setPublicPath (' /build/second_build ' )
8888 .addEntry (' mobile' ,' ./assets/js/mobile.js' )
8989 .addStyleEntry (' mobile' ,' ./assets/css/mobile.less' )
9090 .enableLessLoader ()
@@ -113,10 +113,10 @@ Next, define the output directories of each build:
113113
114114# config/packages/webpack_encore.yaml
115115webpack_encore :
116- output_path :' %kernel.public_dir %/public/default_build'
116+ output_path :' %kernel.project_dir %/public/default_build'
117117builds :
118- firstConfig :' %kernel.public_dir %/public/first_build'
119- secondConfig :' %kernel.public_dir %/public/second_build'
118+ firstConfig :' %kernel.project_dir %/public/first_build'
119+ secondConfig :' %kernel.project_dir %/public/second_build'
120120
121121 Finally, use the third optional parameter of the ``encore_entry_*_tags() ``
122122functions to specify which build to use: