plugin for component-builder that makes output file self contained

npm install component-autoboot
4 downloads in the last week
20 downloads in the last month


Plugin for component build: automatically requires boot module at the end of the output script.


npm install component-autoboot


If have just one script in your application or a webpage (and there is precious few reasons to have more than one if you use component properly) you may catch yourself adding this snippet to HTML

<script src="/build/build.min.js" />

This tiny plugin provides an alternative. Build your sources like this:

component build --use component-autoboot

And require("boot"); line is appended to your script. You can now load it and execute it in one shot.

<script src="/build/build.min.js" defer />



npm loves you