What is Webpack?

devquora
devquora

Posted On: Feb 22, 2018

 

    2 Answers Written

  •  devquora
    Answered by Anil Saini

    Webpack is a module bundler that runs at the time of development, not during the page. It is a tool which helps in configuration to the builder for telling how to load specific things. A Webpack will then load your desired file after the command and you will get exactly according to your requirements. The main function of this tool is to create optimized bundles including the scripts of your application. They support advanced functions like hot module reloading, bundle splitting, source maps, lazy loading, and hashing. Webpack can also work with static data like HTML, CSS, etc. If you are in need of splitting your large application without wasting many resources then it will be good to use Webpack.

  •  devquora
    Answered by Anug Verma

    Webpack is a module bundler and can take care of bundling alongside a separate task runner. However, the line between bundler and task runner has narrowed due to community-developed Webpack plugins. Sometimes, these plugins are used to perform tasks that are usually done outside of a Webpack, such as cleaning the build directory or deploying the build.

Related Questions

Please Login or Register to leave a response.

Related Questions

ES6 Interview Questions

What is ES6?

Es6 or ECMASCRIPT 2015 is sixth major release of ECMAScript language which comes with a lot of new features and syntax..

ES6 Interview Questions

List some new features of ES6

New Features in ES6. Support for constants (also known as “immutable variables”) Block-Scope support for both varia..

ES6 Interview Questions

What is Babel?

Babel is one of the most popular JavaScript transpilers and becomes the industry standard. It allows us to write ES6 cod..