top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

    Get Free Article Updates

Facebook Login
Site Registration
Print Preview

Discussion About Webpack.Js?

0 votes
84 views

What is WebPack.Js?

Webpack is a module bundler for modern JavaScript applications. It is incredibly configurable, but to get started you only need to understand Four Core Concepts: entry, output, loaders, and plugins.

Webpack constructs two separate dependency graphs and emits two bundle files, one called app.js containing only the application code and another called vendor.js with all the vendor dependencies.

Webpack is fed via a configuration object. It is passed in one of two ways depending on how you are using webpack: through the terminal or via Node.js. 

Webpack enables use of loaders to preprocess files. This allows you to bundle any static resource way beyond JavaScript. You can easily write your own loaders using Node.js.

It allows you to split your codebase into multiple chunks. Chunks are loaded asynchronously at runtime. This reduces the initial loading time

NPM Module for install

npm install webpack -g

Video for Webpack.Js

posted Apr 20 by Manish Tiwari

  Promote This Article
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button


Related Articles

What is Synaptic ?

Synaptic is a javascript neural network library for node.js and the browser, its generalized algorithm is architecture-free, so you can build and train basically any type of first order or even second order neural network architectures.

This library includes a few built-in architectures like multilayer perceptrons, multilayer long-short term memory networks (LSTM), liquid state machines or Hopfield networks, and a trainer capable of training any given network, which includes built-in training tasks/tests like solving an XOR, completing a Distracted Sequence Recall task or an Embedded Reber Grammar test, so you can easily test and compare the performance of different architectures.

Npm Command

npm install synaptic --save

Bower Command

bower install synaptic

Sample Layer created using Synaptic:

Video for Synaptic  

https://www.youtube.com/watch?v=tUIEeCO_pZg

READ MORE

What is Casper.Js?
CasperJS is a navigation scripting & testing utility for the PhantomJS (WebKit) and SlimerJS (Gecko) headless browsers, written in Javascript.

CasperJS allows you to build full navigation scenarios using high-level functions and a straight forward interface to accomplish all sizes of tasks.

CasperJS comes with a basic testing suite that allows you to run full featured tests without the overhead of a full browser. Output the tests to xunit for long term code health as well.

Capture data from web pages simply that don't contain APIs. Validate your production environment on a regular basis. Alternatively, use this to load your application with data.

Example Code:

var casper = require('casper').create();

casper.start('http://casperjs.org/', function() {
    this.echo(this.getTitle());
});

casper.thenOpen('http://phantomjs.org', function() {
    this.echo(this.getTitle());
});

Video for Casper.Js
https://www.youtube.com/watch?v=eOuUg6uFUqk

READ MORE

What is Mercury.Js?

Mercury is the creation of Raynos and available as open source under MIT license. It is fast growing in popularity and is getting lot of attention from the community of JavaScript Developers.

Mercury appears to be inspired by react and runs on the concept of virtual DOM rendering. It is modern JavaScript framework, fully modular and can be used to the extent you need.

Looking at the underlying concepts, compact size, modular approach, performance and popularity, Mercury makes its place in list of best 10 JavaScript frameworks of modern times

Benefits

  • Mercury leverages virtual-dom which uses an immutable vdom structure
  • Mercury comes with observ-struct which uses immutable data for your state atom
  • Mercury is truly modular, you can trivially swap out subsets of it for other modules
  • Mercury source code itself is maintainable, the modules it uses are all small, well tested and well documented. you should not be afraid to use mercury in production as it's easy to maintain & fix.
  • Mercury encourages zero dom manipulation in your application code. As far as your application is concerned elements do not exist. This means you don't need to reference DOM elements when rendering or when handling events

Mercury is a small glue layer that composes a set of modules that solves a subset of the frontend problem.

NPM Command

npm install mercury

READ MORE

What is Tern.Js?

Tern is a stand-alone code-analysis engine for JavaScript. It is intended to be used with a code editor plugin to enhance the editor's support for intelligent JavaScript editing. 

Features:

  • Autocompletion on variables and properties
  • Function argument hints
  • Querying the type of an expression
  • Finding the definition of something
  • Automatic refactoring
  • Tern is open-source (MIT license), written in JavaScript, and capable of running both on node.js and in the browser.

 Tern Supported Editors

  • Emacs
  • Vim
  • Sublime Text
  • Brackets
  • Light Table
  • Eclipse 
  • TextMate
  • SourceLair 
  • Chocolat 

For more read here - http://ternjs.net/doc/manual.html 

READ MORE

What is Crafty.Js?

Crafty, previously known as CraftyJS, is a small, simple, and lightweight game engine that can greatly help you build prototypal or fully-featured 2D HTML5 games. Crafty is also open-source and completely free. Its code is hosted openly on GitHub.com and is distributed under the MIT or GPL license.

Crafty is a cohesive collection of custom-built Javascript libraries that provide a framework for building browser-based games using standard web technology. In other words, it’s a Javascript-based HTML5 game engine. It’s designed to make it very easy to make simple games with 2D graphics. 

A Crafty.js game is build up of entities -- the player character, enemies, and obstacles are all represented this way.

Lets start by creating a simple colored square:

Crafty.e('2D, DOM, Color').attr({x: 0, y: 0, w: 100, h: 100}).color('#F00');

For More Visit Here - http://craftyjs.com/getting-started/

Video for Crafty.Js

https://www.youtube.com/watch?v=cA5BAIIWapE

READ MORE

What is Sinon.Js?

“Standalone test spies, stubs and mocks for JavaScript. No dependencies, works with any unit testing framework.” Sinon.js is a really helpful library when you want to unit test your code. It supports spies, stubs, and mocks.

Sinon provides spies, stubs, and mocks. They’re all useful as fakes in tests. They come with essential differences for what they’re helpful in doing and how they work.

Test stubs are functions (spies) with pre-programmed behavior.

They support the full test spy API in addition to methods which can be used to alter the stub’s behavior.

As spies, stubs can be either anonymous or wrap existing functions. When wrapping an existing function with a stub, the original function is not called.

Example :

var stub = sinon.stub();

NPM Installation

npm install sinon

Video for Sinon.JS
https://www.youtube.com/watch?v=SvudHPTEsIk

READ MORE

What is Babel?

Babel is a JavaScript transpiler.Essentially Babel takes the ES2015 JavaScript code and compiles it into ES5 code. This opens up all the ECMAScript 6 features to us when we code our projects.

The compiler can be broken down into 3 parts:

  1. The parser: babylon (moved to a separate repo and versioned independently)
  2. The transformer[s]: All the plugins/presets.These all use babel-traverse to traverse through the AST
  3. The generator: babel-generator
Babel has support for the latest version of JavaScript through syntax transformers. These plugins allow you to use new syntax, right now without waiting for browser support.
 

Node NPM InstalInstallation:

npm install --save-dev babel-preset-env​

Video About Babel?
https://www.youtube.com/watch?v=-Fxi62nYitY

READ MORE
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#470/147, 3rd Floor, 5th Main,
HSR Layout Sector 7,
Bangalore - 560102,
Karnataka INDIA.
QUERY HOME
...