Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

readme.md

Install Webpack

create project

mkdir SampleApp && cd $_ 

install webapck and http-server

npm i webpack -g
npm i http-server -g

make application

open VSCode next ! and press 'tab' key add <script src="build.js"></script> under 'body' tag

(index.html)

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>
<body>
  <script src="bundle.js"></script>
</body>
</html>

(src/main.js)

console.log('hello');

build

webpack src/main.js bin/bundle.js
http-server -p 9000