Unknown “encore_entry_link_tags” function when using Webpack Encore ^0.21.0

前端 未结 3 1507
野的像风
野的像风 2021-01-07 23:12

I would like to use the new version of Webpack encore to have access to all the new features it offers. however after following the steps in the official guide I can\'t make

3条回答
  •  -上瘾入骨i
    2021-01-07 23:52

    Just run the following 2 cmds:

    composer require symfony/webpack-encore-bundle

    composer remove symfony/webpack-encore-pack

    This fixed the issue for me, apparently they had upgraded webpack encore package with symfony 4;

    Here's some reading:

    https://symfony.com/blog/encore-0-21-0-webpack-4-support-copy-files-support-webpackencorebundle

提交回复
热议问题