File tree Expand file tree Collapse file tree 3 files changed +17
-6
lines changed
symfony/webpack-encore-pack/1.0 Expand file tree Collapse file tree 3 files changed +17
-6
lines changed Original file line number Diff line number Diff line change
1
+ framework :
2
+ assets :
3
+ json_manifest_path : ' %kernel.project_dir%/public/build/manifest.json'
Original file line number Diff line number Diff line change 1
1
{
2
2
"copy-from-recipe" : {
3
3
"assets/" : " assets/" ,
4
+ "config/" : " %CONFIG_DIR%/" ,
4
5
"package.json" : " package.json" ,
5
6
"webpack.config.js" : " webpack.config.js"
6
7
},
Original file line number Diff line number Diff line change 5
5
. setOutputPath ( 'public/build/' )
6
6
// the public path used by the web server to access the previous directory
7
7
. setPublicPath ( '/build' )
8
+ // the public path you will use in Symfony's asset() function - e.g. asset('build/some_file.js')
9
+ . setManifestKeyPrefix ( 'build/' )
10
+
8
11
. cleanupOutputBeforeBuild ( )
9
12
. enableSourceMaps ( ! Encore . isProduction ( ) )
10
- // uncomment to create hashed filenames (e.g. app.abc123.css)
11
- // .enableVersioning(Encore.isProduction())
13
+
14
+ // the following line enables hashed filenames (e.g. app.abc123.css)
15
+ . enableVersioning ( Encore . isProduction ( ) )
12
16
13
17
// uncomment to define the assets of the project
14
- // .addEntry('js/app', './assets/js/app.js')
15
- // .addStyleEntry('css/app', './assets/css/app.scss')
18
+ //.addEntry('js/app', './assets/js/app.js')
19
+ //.addStyleEntry('css/app', './assets/css/app.scss')
20
+
21
+ // uncomment if you use TypeScript
22
+ //.enableTypeScriptLoader()
16
23
17
24
// uncomment if you use Sass/SCSS files
18
- // .enableSassLoader()
25
+ //.enableSassLoader()
19
26
20
27
// uncomment for legacy applications that require $/jQuery as a global variable
21
- // .autoProvidejQuery()
28
+ //.autoProvidejQuery()
22
29
;
23
30
24
31
module . exports = Encore . getWebpackConfig ( ) ;
You can’t perform that action at this time.
0 commit comments