Skip to content

Commit eb7e0f4

Browse files
committed
Adding recipe for symfony/webpack-encore-bundle
1 parent 8d1d2ec commit eb7e0f4

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
webpack_encore:
2+
# The path where Encore is building the assets.
3+
# This should match Encore.setOutputPath() in webpack.config.js.
4+
output_path: '%kernel.public_dir%/build'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"copy-from-recipe": {
3+
"config/": "%CONFIG_DIR%/"
4+
}
5+
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ Encore
2121
//.addEntry('page1', './assets/js/page1.js')
2222
//.addEntry('page2', './assets/js/page2.js')
2323

24+
// will require an extra script tag for runtime.js
25+
// but, you probably want this, unless you're building a single-page app
26+
.enableSingleRuntimeChunk()
27+
2428
/*
2529
* FEATURE CONFIG
2630
*

0 commit comments

Comments
 (0)