When using a theme file that includes several other files via the extends syntax this will lead to multiple http requests.
To minimize the http requests for a production application the harp-theme-optimizer will combine all included files into one.
Additionaly whitespaces can be removed withe the --minify option.
Package content - the tools
HARP theme tools are build in Node.js environment (see: https://nodejs.org) so you will need to install some prerequisities to use them:
There is currently one application in the package and it is distributed as a command line tools (CLI), thus after installing:
npm install harp-theme-tools
in directory of your choice you will have the following application available:
You may simply launch it from you command line shell, using npx, adding --help option allows to see their short version of usage manual:
npx harp-theme-optimizer --help
harp-theme-optimizer
When using a theme file that includes several other files via the extends syntax this will lead to multiple http requests. To minimize the http requests for a production application the
harp-theme-optimizer
will combine all included files into one. Additionaly whitespaces can be removed withe the--minify
option.npx harp-theme-optimizer --in 'my-theme-file.json' --minify