Skip to content

optimix/webpack-babel-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contents

.
├── package.json         # npm configuration file 
├── README.md            # this documentation
├── src
│   ├── Application.js   # es6 simple class example
│   ├── css
│   │   └── example.css  # simple .css file to be included
│   ├── example.js       # main .js entry point of the application
│   └── index.html       # basic template .html entry point
└── webpack.config.js    # webpack configuration

Setup

Download nodejs: https://nodejs.org/ (for example version 12.13.0 LTS)

tar xf node-v12.13.0-linux-x64.tar.xz
export PATH=`pwd`/node-v12.13.0-linux-x64/bin:$PATH
git clone https://github.com/optimix/webpack-babel-example.git
cd webpack-babel-example
npm install
npm run server

Open a web browser and visit http://localhost:8087/

Generate distribution files

To generate distribution files in the dist directory, type npm run dist. This command will run npx webpack as defined in package.json.

About

Simple example of webpack and babel application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published