mirror of
https://github.com/symfony/recipes.git
synced 2026-09-21 12:06:33 +03:00
Adding recipe for symfony/webpack-encore-bundle
This commit is contained in:
@@ -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('page1', './assets/js/page1.js')
|
||||||
//.addEntry('page2', './assets/js/page2.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
|
* FEATURE CONFIG
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user