shaunakv1 / easypack

A super simple build tool made in node to pack marked js and css files in a html file into single timestamped js and css file
2 stars 1 forks source link

Multiple html files #8

Open draco2007 opened 6 years ago

draco2007 commented 6 years ago

It seems to be impossible to create two different packages for two different html files within the same project. So something like this does not work:

var sb = require("easypack");
sb.build({
    webRoot: "root",
    inputHtml: "index.html",
    outputHtml: "index.build.html",
    jsBuildName: "main.js",
    timeStampBuild: false
});

sb.build({
    webRoot: "root",
    inputHtml: "rulesIndex.html",
    outputHtml: "rulesIndex.build.html",
    jsBuildName: "rules.js",
    timeStampBuild: false
});

it only creates rulesIndex.build.html, the first html will not be created. It seams that the build() function always clears the build folder.