Skip to content

Frontend bundler for mini project, modern JS to browser environment.

Notifications You must be signed in to change notification settings

kevinwfhe/minipack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minipack

This tool is able to generate the dependency graph of the project and bundle the whole project to a single script file, plus converting ES6 to ES5, so that the all the modules in the project can be loaded in browser environment.


To install, use:

npm i @kevinhe/minipack

After installing, a config file (minipack.config.js) will be auto generated under the project root, you should specify the entry point of the project, which will be used as the start point by minipack.

ENTRY_POINT = "./src/index.js" (default path)

You can also specify the path where the bundle should output to.

OUTPUT_DIR = "./dist" (default path)

To build the bundle, use:

node minipack.script.js

and find the bundle at the output path of your choice.

About

Frontend bundler for mini project, modern JS to browser environment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published