8000 minor #10362 [Encore] unify the name of app file (gregurco) · symfony/symfony-docs@37e3992 · GitHub
[go: up one dir, main page]

Skip to content

Commit 37e3992

Browse files
committed
minor #10362 [Encore] unify the name of app file (gregurco)
This PR was merged into the 3.4 branch. Discussion ---------- [Encore] unify the name of app file Hello. I found 2 problems related to app file in WebPack config: 1) Relative path was not used in one place (`'assets/js/app.js'` instead of `'./assets/js/app.js'`) - what caused an error in my case. 2) In some cases there was `main.js` instead of `app.js`, but everywhere in text I found references only to `app.js` file. I guess it should be unified. Commits ------- 9c65752 [Encore] unify the name of app file
2 parents a945671 + 9c65752 commit 37e3992

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

frontend/encore/advanced-config.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ state of the current configuration to build a new one:
5353
Encore
5454
.setOutputPath('web/build/')
5555
.setPublicPath('/build')
56-
.addEntry('app', './assets/js/main.js')
56+
.addEntry('app', './assets/js/app.js')
5757
.addStyleEntry('global', './assets/css/global.scss')
5858
.enableSassLoader()
5959
.autoProvidejQuery()

frontend/encore/page-specific-assets.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ a new ``checkout`` entry:
1414
1515
Encore
1616
// an existing entry
17-
.addEntry('app', './assets/js/main.js')
17+
.addEntry('app', './assets/js/app.js')
1818
// a global styles entry
1919
.addStyleEntry('global', './assets/css/global.scss')
2020

frontend/encore/shared-entry.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Update your code to use ``createSharedEntry()``:
1313
1414
Encore
1515
// ...
16-
- .addEntry('app', 'assets/js/app.js')
17-
+ .createSharedEntry('app', 'assets/js/app.js')
16+
- .addEntry('app', './assets/js/app.js')
17+
+ .createSharedEntry('app', './assets/js/app.js')
1818
.addEntry('homepage', './assets/js/homepage.js')
1919
.addEntry('blog', './assets/js/blog.js')
2020
.addEntry('store', './assets/js/store.js')

0 commit comments

Comments
 (0)
0