Question: Gulp, Grunt(build systems) vs webpack (bundles system) #1398

Closed
evilebottnawi opened this Issue Aug 28, 2015 · 3 comments

Projects

None yet

3 participants

@evilebottnawi

I would like to deal with any problem can not cope webpack. Is it possible to replace build systems on webpack or there are tasks that require the build system. How much faster webpack cope with the assembly than gulp (grunt)?

@SpaceK33z
Member

Yes, in many cases you can completely replace gulp / grunt with webpack. Webpack can compile your Sass / Less -> CSS, handle image minification etc.. The small things that are left, you can often also do with npm scripts. An example package.json file:

{
  "devDependencies": {
    "webpack": "1.12.0"
  },
  "scripts": {
    "build": "npm run clean && webpack --progress",
    "clean": "rm -rf dist/*"
  }
}

Now you can run npm run build.

@bebraw
Member
bebraw commented Nov 13, 2015

@evilebottnawi Safe to close perhaps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment