|
|
|
|
|
by TheAceOfHearts
3980 days ago
|
|
I challenge your assumption that gulp + browserify is more straightforward than webpack. Your setup is not representative of a real application. I setup a project scaffold [0] with a configuration that supports development, production, and testing environments. It has a heavily commented webpack config. No tests? No asset cache busting by updating name references? Come on, those are basic requirements for a web project. On top of that, webpack lets your dependencies be resolved as part of your code, instead of relying on certain files being in certain folders: e.g. your css and images. [0] http://github.com/cesarandreu/web-app |
|
What is your experience in regard to running tests with Webpack?
* Can you test individual modules that use arbitrary loaders specified in your Webpack config?
* Can you run tests from the command line?
* Can you write your tests in ES6/7 (or anything else supported by Webpack's loaders)?
I was looking into combining jest with Webpack but every solution so far would only compile your module directly with Babel and therefore skipping the power of Webpack.