Skip to content

Commit 1035def

Browse files
author
symfony-flex-server[bot]
authored
Merge pull request #410
2 parents 0e0478f + 261dfea commit 1035def

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
framework:
2+
assets:
3+
json_manifest_path: '%kernel.project_dir%/public/build/manifest.json'

symfony/webpack-encore-pack/1.0/manifest.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"copy-from-recipe": {
33
"assets/": "assets/",
4+
"config/": "%CONFIG_DIR%/",
45
"package.json": "package.json",
56
"webpack.config.js": "webpack.config.js"
67
},

symfony/webpack-encore-pack/1.0/webpack.config.js

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,27 @@ Encore
55
.setOutputPath('public/build/')
66
// the public path used by the web server to access the previous directory
77
.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+
811
.cleanupOutputBeforeBuild()
912
.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())
1216

1317
// 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()
1623

1724
// uncomment if you use Sass/SCSS files
18-
// .enableSassLoader()
25+
//.enableSassLoader()
1926

2027
// uncomment for legacy applications that require $/jQuery as a global variable
21-
// .autoProvidejQuery()
28+
//.autoProvidejQuery()
2229
;
2330

2431
module.exports = Encore.getWebpackConfig();

0 commit comments

Comments
 (0)