Dompack-builder - tooling to build with webpack
- Quickly building ES6 examples with a CLI
- API to build webpacks with reasonable default conversion settings
Converting simple webpacks in directories
Create a dompack.json file in the relevant directory, with the following format:
Then run dompack-builder <path-to-dompack.json>
to build the webpack. With the following html file the webpack can be loaded:
<html>
<head>
<link href="dompackbuild/ap.css" rel="stylesheet"></link>
<script src="dompackbuild/ap.js"></script>
</head>
<body>
</body>
</html>
The default build directory is ./dompackbuild
, so it is recommended to add that name to your .gitignore.
Programmatically generate webpack configurations
const dompackbuilder = ;const webpack = ; const config =
Publishing
npm test
npm version patch|minor|major
git push origin
git push origin --tags
npm publish