Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Webpack replace Gulp?

Tags:

gulp

webpack

So I am transitioning to Webpack from Gulp. Can I still watch for changes and for instance minify images e.g. in app/images/**/*.{svg,etc}?

like image 418
Bram z Avatar asked Jan 16 '17 21:01

Bram z


People also ask

Is Gulp still relevant?

It's no longer necessary with tools like create-react-app and next-js. Gulp used to make sense before Webpack and React. You needed to process files, build your project, and have a functioning web server (BrowserSync) that refreshes the browser when you make changes.

Can Webpack replace grunt?

Comparing Grunt and Webpack While the use case is quite similar in the two, they are conceptionally different. Grunt is a task runner, while Webpack is a module bundler. Effectively they both take your source files and do a series of transformations to generate some compiled code you can run and deploy.

What is the main difference between Webpack and other build tools like Gulp or grunt?

Grunt and Gulp are task runners, while Webpack is a module bundler. Task runners are basically used to automate tasks in a development process. Some of these tasks include compressing JS files, compiling Sass files, watching out for file changes, minifying files and auto-prefixing.


1 Answers

Yes. If you're using Webpack, there is no reason to manage any assets with Gulp. Suggested reading: Webpack, when to use and why.

like image 106
Andy Ray Avatar answered Sep 28 '22 06:09

Andy Ray