Adding recipe for symfony/webpack-encore-bundle

This commit is contained in:
Ryan Weaver
2018-11-05 08:43:00 -05:00
parent 8d1d2ec587
commit eb7e0f4e5a
3 changed files with 13 additions and 0 deletions
@@ -0,0 +1,4 @@
webpack_encore:
# The path where Encore is building the assets.
# This should match Encore.setOutputPath() in webpack.config.js.
output_path: '%kernel.public_dir%/build'
@@ -0,0 +1,5 @@
{
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
}
}
@@ -21,6 +21,10 @@ Encore
//.addEntry('page1', './assets/js/page1.js')
//.addEntry('page2', './assets/js/page2.js')
// will require an extra script tag for runtime.js
// but, you probably want this, unless you're building a single-page app
.enableSingleRuntimeChunk()
/*
* FEATURE CONFIG
*