Skip to content

Commit

Permalink
[Maintenance] Rename entry.js to entrypoint.js (#1082)
Browse files Browse the repository at this point in the history
  • Loading branch information
GSadee authored Nov 29, 2024
2 parents daad4a5 + 9da53e2 commit 65586d7
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
1 change: 0 additions & 1 deletion assets/admin/entry.js

This file was deleted.

2 changes: 2 additions & 0 deletions assets/admin/entrypoint.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// In this file you can import assets like images or stylesheets
console.log('Hello Webpack Encore! Edit me in assets/admin/entrypoint.js');
1 change: 0 additions & 1 deletion assets/shop/entry.js

This file was deleted.

2 changes: 2 additions & 0 deletions assets/shop/entrypoint.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// In this file you can import assets like images or stylesheets
console.log('Hello Webpack Encore! Edit me in assets/shop/entrypoint.js');
2 changes: 2 additions & 0 deletions config/packages/_sylius.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ sylius_channel:
channel:
classes:
model: App\Entity\Channel\Channel

sylius_core:
resources:
avatar_image:
Expand Down Expand Up @@ -245,6 +246,7 @@ sylius_taxonomy:
translation:
classes:
model: App\Entity\Taxonomy\TaxonTranslation

sylius_user:
resources:
admin:
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Encore.reset();
Encore
.setOutputPath('public/build/app/shop')
.setPublicPath('/build/app/shop')
.addEntry('app-shop-entry', './assets/shop/entry.js')
.addEntry('app-shop-entry', './assets/shop/entrypoint.js')
.disableSingleRuntimeChunk()
.cleanupOutputBeforeBuild()
.enableSourceMaps(!Encore.isProduction())
Expand All @@ -71,7 +71,7 @@ Encore.reset();
Encore
.setOutputPath('public/build/app/admin')
.setPublicPath('/build/app/admin')
.addEntry('app-admin-entry', './assets/admin/entry.js')
.addEntry('app-admin-entry', './assets/admin/entrypoint.js')
.disableSingleRuntimeChunk()
.cleanupOutputBeforeBuild()
.enableSourceMaps(!Encore.isProduction())
Expand Down

0 comments on commit 65586d7

Please sign in to comment.