Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我管理配置 Webpack 以将 CSS 和 JS 输出到各自的子目录中,即 public/assets/css 和 public/assets/js。但是,我不知道如何对 Symfony Webpack Encore 做同样的事情。
生成资产的目录在 webpack.config.js 文件中使用 .setPublicPath('/build').
.setPublicPath('/build')
我不确定,但由于 webpack 应该帮助你“不关心生成的资产”,你需要在子文件夹中拆分 js/css 文件吗?