Junior Gantin
Junior Gantin

Reputation: 2192

How to split the generated assets in seperated folders with Symfony Webpack Encore

I managed configure Webpack to output CSS and JS into respective sub-directories, i.e. public/assets/css and public/assets/js. However, I don't know how to do the same with Symfony Webpack Encore.

Upvotes: 1

Views: 922

Answers (1)

Ousmane
Ousmane

Reputation: 2921

The directory where assets are generated is defined in the webpack.config.js file with .setPublicPath('/build').

I am not sure but since webpack is supposed to help you "not to care about generated assets" what is your need to split js/css files in sub folder ?

Upvotes: 1

Related Questions