Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

dependencies

webpack reads the enty point and analyzes it dependencies, it dependencies' dependencies, and so on

webpack buildes the entry point and all its dependencies into a single file.

(src/main.js)

let print = require('./print');
print('Hello World');

(src/print.js)

module.exports = (msg) => document.write('[print]', msg);

Execute a command:

webpack src/main.js bin/bundle.js

https://webpack.github.io/docs/usage.html