1.0.12 • Published 2 years ago

pallet-bundler v1.0.12

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Pallet

Install

npm install pallet-bundler
or...
npm install -g pallet-bundler

Getting Started

Simply run pallet in a folder with an index.html file in it and let Pallet do the rest!

pallet

Options (CLI)

Options:
      --version    Show version number                                 [boolean]
  -e, --entry      Entry point                         [default: "./index.html"]
  -d, --dir        Output Directory                            [default: "dist"]
      --html       Html Output file path                 [default: "index.html"]
      --css        Css Output file path                   [default: "style.css"]
      --immediate  Non-Defered JavaScript Output file path [default: "bundle.js"]
      --defered    Defered JavaScript Output file path
                                                  [default: "defered.bundle.js"]
  -c, --config     Path to config file           [default: "./pallet.config.js"]
      --help       Show help                                           [boolean]

Using a Config File

Example Config File

module.exports = {
  entry: "./index.html",
  exclude: [],
  output: {
    dir: "dist",
    html: "index.html",
    css: "style.css",
    js: {
      immediate: "bundle.js",
      defered: "defered.bundle.js",
    },
  },
}; 

Steps

  1. Make a file called pallet.config.js.
  2. Run pallet!
1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

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.0

2 years ago