Skip to content

Commit 65586d7

Browse files
authored
[Maintenance] Rename entry.js to entrypoint.js (#1082)
2 parents daad4a5 + 9da53e2 commit 65586d7

File tree

6 files changed

+8
-4
lines changed

6 files changed

+8
-4
lines changed

assets/admin/entry.js

-1
This file was deleted.

assets/admin/entrypoint.js

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// In this file you can import assets like images or stylesheets
2+
console.log('Hello Webpack Encore! Edit me in assets/admin/entrypoint.js');

assets/shop/entry.js

-1
This file was deleted.

assets/shop/entrypoint.js

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// In this file you can import assets like images or stylesheets
2+
console.log('Hello Webpack Encore! Edit me in assets/shop/entrypoint.js');

config/packages/_sylius.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ sylius_channel:
4747
channel:
4848
classes:
4949
model: App\Entity\Channel\Channel
50+
5051
sylius_core:
5152
resources:
5253
avatar_image:
@@ -245,6 +246,7 @@ sylius_taxonomy:
245246
translation:
246247
classes:
247248
model: App\Entity\Taxonomy\TaxonTranslation
249+
248250
sylius_user:
249251
resources:
250252
admin:

webpack.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Encore.reset();
5050
Encore
5151
.setOutputPath('public/build/app/shop')
5252
.setPublicPath('/build/app/shop')
53-
.addEntry('app-shop-entry', './assets/shop/entry.js')
53+
.addEntry('app-shop-entry', './assets/shop/entrypoint.js')
5454
.disableSingleRuntimeChunk()
5555
.cleanupOutputBeforeBuild()
5656
.enableSourceMaps(!Encore.isProduction())
@@ -71,7 +71,7 @@ Encore.reset();
7171
Encore
7272
.setOutputPath('public/build/app/admin')
7373
.setPublicPath('/build/app/admin')
74-
.addEntry('app-admin-entry', './assets/admin/entry.js')
74+
.addEntry('app-admin-entry', './assets/admin/entrypoint.js')
7575
.disableSingleRuntimeChunk()
7676
.cleanupOutputBeforeBuild()
7777
.enableSourceMaps(!Encore.isProduction())

0 commit comments

Comments
 (0)