mcfly-io / generator-mcfly

A Yeoman generator for scaffolding an application using angular, browserify, ionic and famous

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve webpack support

andreialecu opened this issue · comments

When using webpack, sass/less files should be parsed using native webpack loaders instead of gulp

Same for copying and optimizing images, copying html files, etc.

maybe i'm missing something but If you require the sass / less / images / html in your javascript, the webpack loaders will do the work
they are already configured that way

You can require them, but they're also created by gulp, so the gulp tasks need to be stripped as well.

It would also mean a lot fewer dependencies in package.json, since a lot of the packages (sass, browserify, etc) wouldn't be necessary any more - resulting in a leaner installation.

Ideally, webpack/browserify should be a question during initial setup, resulting in different gulp files/dependencies depending on the choice.

yep i see, do you want to give it a shot a make a PR ?

@thaiat: I went ahead and did so #270

Let's discuss there :)