有没有方法定义将为symfony/src/mybundle/resources/public
目录内容生成的输出文件夹名称?
现在它自动生成Web/bundles/
MyBundleName/css
文件夹,但是我需要有Web/bundles/
Custome_Name/css
PS:我在谷歌搜索了一下没有找到关于这个的东西……
如果您正在使用Webpack和Encore(如文档所示),您可以在中编辑参数
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')