@@ -1212,8 +1212,8 @@ file names (e.g. ``main.ae433f1cb.css``) during a front-end compilation routine.
1212
1212
1213
1213
Symfony's :ref: `Webpack Encore <frontend-webpack-encore >` supports
1214
1214
:ref: `outputting hashed assets <encore-long-term-caching >`. Moreover, this
1215
- can be incorporate this into many other workflows, including Webpack and
1216
- Gulp using `webpack-manifest-plugin `_ and `gulp-rev `_, respectfully .
1215
+ can be incorporated into many other workflows, including Webpack and
1216
+ Gulp using `webpack-manifest-plugin `_ and `gulp-rev `_, respectively .
1217
1217
1218
1218
This option can be set globally for all assets and individually for each asset
1219
1219
package:
@@ -1246,15 +1246,16 @@ package:
1246
1246
http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
1247
1247
1248
1248
<framework : config >
1249
- <framework : assets json_manifest_path =" %kernel.project_dir%/web/assets/manifest.json" >
1250
- <!-- this package removes the manifest (the file will not apply) -->
1249
+ <!-- this manifest is applied to every asset (including packages) -->
1250
+ <framework : assets json-manifest-path =" %kernel.project_dir%/web/assets/manifest.json" >
1251
+ <!-- this package uses its own manifest (the default file is ignored) -->
1251
1252
<framework : package
1252
1253
name =" foo_package"
1253
- json_manifest_path =" %kernel.project_dir%/web/assets/a_different_manifest.json" />
1254
+ json-manifest-path =" %kernel.project_dir%/web/assets/a_different_manifest.json" />
1254
1255
<!-- this package uses the global manifest (the default file is used) -->
1255
1256
<framework : package
1256
1257
name =" bar_package"
1257
- base_path =" /images" />
1258
+ base-path =" /images" />
1258
1259
</framework : assets >
1259
1260
</framework : config >
1260
1261
</container >
@@ -1264,6 +1265,7 @@ package:
1264
1265
// app/config/config.php
1265
1266
$container->loadFromExtension('framework', array(
1266
1267
'assets' => array(
1268
+ // this manifest is applied to every asset (including packages)
1267
1269
'json_manifest_path' => '%kernel.project_dir%/web/assets/manifest.json',
1268
1270
'packages' => array(
1269
1271
'foo_package' => array(
@@ -1272,7 +1274,7 @@ package:
1272
1274
),
1273
1275
'bar_package' => array(
1274
1276
// this package uses the global manifest (the default file is used)
1275
- 'json_manifest_path ' => '/images',
1277
+ 'base_path ' => '/images',
1276
1278
),
1277
1279
),
1278
1280
),
@@ -2002,4 +2004,4 @@ Full Default Configuration
2002
2004
.. _`phpstorm-url-handler` : https://github.com/sanduhrs/phpstorm-url-handler
2003
2005
.. _`blue/green deployment` : http://martinfowler.com/bliki/BlueGreenDeployment.html
2004
2006
.. _`gulp-rev` : https://www.npmjs.com/package/gulp-rev
2005
- .. _`webpack-manifest-plugin` : https://www.npmjs.com/package/webpack-manifest-plugin
2007
+ .. _`webpack-manifest-plugin` : https://www.npmjs.com/package/webpack-manifest-plugin
0 commit comments