Skip to content
This repository has been archived by the owner on Dec 24, 2019. It is now read-only.

Latest commit

 

History

History
9 lines (9 loc) · 2.29 KB

pack.md

File metadata and controls

9 lines (9 loc) · 2.29 KB

pack


Pack your project with Webpack

Command Parameters


Configuration name CLI Environmental variable Type Required Default value Description
type type - "browser" | "browserLibrary" yes
-
Your package type
mode mode - "development" | "production" no
production
Use development for watch mode (and local server in case of browser)
entry entry - (string | Array<string>) yes
-
Entry file(s) that should be packed
output output - string no
dist
Build output directory
sources sources - (string | Array<string>) no
src
Source directory of the app
html html - (string | boolean) no
-
HTML template for browser app (set it to true if you still want to emit the default index file). You can also disable injection of default scripts, i.e.: "src/index.html!no-inject"
staticPath staticPath - string no
-
Static files directory, which contents will be copied to the ourput location
publicPath publicPath - string no
-
Public path to resources/scripts on the webpage
circularDependencies circularDependencies - "error" | "warn" | "disable" no
-
Determines if we should check for circularDependencies or not
cache cache PACK_CACHE string no
.pack
Build tools cache location
serviceWorker serviceWorker - boolean no
-
Set to "true" in order to bundle service worker