Skip to content

Allowing html targets (index*.html files) when running npm run package #3874

@dennybiasiolli

Description

@dennybiasiolli

It will be useful to export multiple index*.html files in a single run of npm run package, in order to host multiple presentations in the same package.

The idea is to consider multiple parameters passed to the npm run package command.

Current behaviour:

const htmlTarget = args.length > 0 ? args[0] : 'index.html';
// handle single file

Desired behaviour:

const htmlTargets = args.length > 0 ? args : ['index.html'];
// iterate through all the targets

So when users run, for example, npm run package index*.html it will consider every index*.html file in the root directory, not just the index.html file

I will try to work on a PR for this

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions