8000 Fixes for #8084 thanks to Stof · medinae/symfony-docs@57a7a12 · GitHub
[go: up one dir, main page]

Skip to content

Commit 57a7a12

Browse files
committed
Fixes for symfony#8084 thanks to Stof
1 parent 8cfcc90 commit 57a7a12

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

frontend/encore/advanced-config.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ But be careful not to accidentally override any config from Encore:
3535
// ...
3636
3737
// GOOD - this modifies the config.resolve.extensions array
38-
// config.resolve.extensions.push('json');
38+
config.resolve.extensions.push('json');
3939
4040
// BAD - this replaces any extensions added by Encore
4141
// config.resolve.extensions = ['json'];

frontend/encore/custom-loaders-plugins.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ additional information your need for the loader
2828
// ...
2929
.addLoader({
3030
test: /\.handlebars$/,
31-
loader: 'handlebars-loader',
32-
query: {
33-
helperDirs: [
34-
__dirname + '/helpers1',
35-
__dirname + '/helpers2',
31+
loader: 'handlebars-loader',
32+
options: {
33+
helperDirs: [
34+
__dirname + '/helpers1',
35+
__dirname + '/helpers2',
3636
],
3737
partialDirs: [
3838
path.join(__dirname, 'templates', 'partials')
3939
]
40-
}
40+
}
4141
})
4242
;
4343

frontend/encore/faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ like ``/myAppSubdir``), you just need to configure that when calling ``Encore.se
2121
2222
+ // this is now needed so that your manifest.json keys are still `build/foo.js`
2323
+ // i.e. you won't need to change anything in your Symfony app
24-
+ config.setManifestKeyPrefix('build')
24+
+ .setManifestKeyPrefix('build')
2525
;
2626
2727
If you're :ref:`processing your assets through manifest.json <load-manifest-files>`,

0 commit comments

Comments
 (0)
0