No description
Find a file
2020-08-02 02:44:27 -06:00
.eslintrc.json Initial package setup 2020-06-21 19:56:43 -06:00
.gitignore Initial package setup 2020-06-21 19:56:43 -06:00
.npmrc Initial package setup 2020-06-21 19:56:43 -06:00
icepack-bin.js Use fixed version of @rollup/plugin-node-resolve 2020-08-02 02:44:27 -06:00
package-lock.json Use fixed version of @rollup/plugin-node-resolve 2020-08-02 02:44:27 -06:00
package.json Use fixed version of @rollup/plugin-node-resolve 2020-08-02 02:44:27 -06:00
README.md Add the map option to change the output name for any module 2020-08-02 02:41:31 -06:00

icepack

Put your dependencies on ice.

Options

The options object can be in any of the following places, which are merged in order:

Location
icepack property of package.json
icepack.config.json

Options

Option Required Default Description
output false ./ice_modules Where the resulting ES module bundles will be placed.
clean false false Whether to empty the output directory before creating new bundles.
modules true [] The modules to bundle
map false {} Map some module name to a different output name. Useful to eliminate nested output folders or change extensions like .mjs or drop things like .esm.js. Only include mappings you'd like to change. The default doesn't modify the output filename

Run

npx @thomasrandolph/icepack

Alternatively:

npm install --save-dev @thomasrandolph/icepack

Then, either add a script to your package.json:

{
	"icepack": "icepack"
}

...and run it with npm run icepack.

Or, run it directly:

node ./node_modules/.bin/icepack