1.0.7 • Published 2 years ago

packk v1.0.7

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
2 years ago

(npm) packk

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

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>

Contact

E-Mail: plate.felix@gmx.de

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

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

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago