Skip to content
/ packk Public

Simple to use tool that packs and minifies Javascript files into one single file.

License

Notifications You must be signed in to change notification settings

tensoid/packk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

(npm) packk

Simple to use tool that packs and minifies JavaScript files into one single file.

(back to top)

Getting Started

This is a command line tool only. The following steps demonstrate the installation and usage.

Prerequisites

  • npm
    npm install npm@latest -g

Installation and Usage

  1. Install via NPM

    npm i -g packk
  2. Generate a packk.json template file. This is where all the configuration will be.

    packk init
  3. Configure the packk file

    {
     "output": "./dist/out.js",
     "prefix": "This will be shown before the source code in the packaged file",
     "anonymize": true,
     "files": [
       "./src/foo.js",
       "./src/bar.js",
       "./src/foobar.js"
     ]
    }

    Note: if the anonymize flag is set to true, the entire packaged code will be wrapped in an anonymous function so that it is not accessible from the browser console.

  4. Package the source files

    packk <filepath to packk.json file>

(back to top)

Contact

E-Mail: plate.felix@gmx.de

Project Link: https://github.com/tensoid/packk

NPM Link: https://www.npmjs.com/package/packk

(back to top)

About

Simple to use tool that packs and minifies Javascript files into one single file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published