Skip to content

packaging application with native modules #88

@ceonizm

Description

@ceonizm

Hello,

I was wondering how do you deal with native modules.
When doing webpack I see bozon create a package.json in the build folder from its manifest function: this package.json doesn't comport any dependencies ; I totally understand it and why, as webpack is supposed to pack all the code in one file, but I don't see how to deal with the case of native modules that can't be packed.

In my current task I want to build an app with node-hid so at the end I need to have it listed in the package.json in the build/{env} folder in order electron-builder can handle it.

Is there a mechanism or a config in bozon that allows us to do that (eg: specify a list of depedencies to add) or does this kind of task is doable in webpack with a plugin ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions