捆绑包的 Symfony 3 资产安装输出文件夹名称

Symfony 3 asset install output folder name for bundle

有什么方法可以定义将为 symfony/src/mybundle/Resources/public 目录内容生成的输出文件夹名称吗?

现在它会自动生成 web/bundles/mybundlename/css 文件夹,但我需要 web/bundles/custome_name/css

PS:我在 google 中搜索没有找到关于此的任何信息...

如果您使用 Webpack 和 Encore 作为 documentation 推荐,您可以编辑

中的参数
Encore
// directory where compiled assets will be stored
.setOutputPath('web/bundles/yourcustomname/')
// public path used by the web server to access the output path
.setPublicPath('/yourcustomname')