vuejs-templates / webpack

A full-featured Webpack + vue-loader setup with hot reload, linting, testing & css extraction.
MIT License
9.7k stars 4.38k forks source link

Passing loader options - the 'generateLoaders' issue #1307

Open gkatsanos opened 6 years ago

gkatsanos commented 6 years ago

Hello,

Regarding https://github.com/vuejs-templates/webpack/blob/develop/template/build/utils.js . I am trying to pass options to each of these loaders but it seems the generateLoaders is complicating things. I wouldn't like to debate here the decision on why to implement a helper function for that but I would like to ask your opinion as how would we pass options to one of those loaders independently without changing the philosophy of the utils file.

elektracodes commented 6 years ago

Same issue here. The docs of vue-loader don't help much either.

gkatsanos commented 6 years ago

It just feels this was written for a very particular case and it's not extendable - I don't see the added value of complicating the webpack configuration EVEN MORE than it already is.