Moving most of the webpack-encore-pack recipe to webpack-encore-bundle

This commit is contained in:
Ryan Weaver
2018-11-05 08:43:05 -05:00
parent eb7e0f4e5a
commit 903f0f62c6
10 changed files with 24 additions and 11 deletions
@@ -1,4 +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'
output_path: '%kernel.project_dir%/public/build'
@@ -1,5 +1,18 @@
{
"bundles": {
"Symfony\\WebpackEncoreBundle\\WebpackEncoreBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
}
"assets/": "assets/",
"config/": "%CONFIG_DIR%/",
"package.json": "package.json",
"webpack.config.js": "webpack.config.js"
},
"aliases": ["encore", "webpack", "webpack-encore"],
"gitignore": [
"/node_modules/",
"/%PUBLIC_DIR%/build/",
"npm-debug.log",
"yarn-error.log"
]
}
@@ -1,6 +1,6 @@
{
"devDependencies": {
"@symfony/webpack-encore": "^0.20.0",
"@symfony/webpack-encore": "^0.21.0",
"webpack-notifier": "^1.6.0"
},
"license": "UNLICENSED",
@@ -0,0 +1,7 @@
<bg=yellow;fg=black> </>
<bg=yellow;fg=black> The symfony/webpack-encore-pack is no longer required anymore. Instead, use symfony/webpack-encore-bundle. </>
<bg=yellow;fg=black> </>
* <fg=blue>Instead</>:
1. Remove it now: <comment>composer remove symfony/webpack-encore-pack</>
2. Use Symfony's bridge: <comment>composer require encore</>
@@ -1,11 +1,4 @@
{
"copy-from-recipe": {
"assets/": "assets/",
"config/": "%CONFIG_DIR%/",
"package.json": "package.json",
"webpack.config.js": "webpack.config.js"
},
"aliases": ["encore", "webpack", "webpack-encore"],
"gitignore": [
"/node_modules/",
"/%PUBLIC_DIR%/build/",