Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple html files #8

Open
draco2007 opened this issue Apr 13, 2018 · 0 comments
Open

Multiple html files #8

draco2007 opened this issue Apr 13, 2018 · 0 comments

Comments

@draco2007
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant