Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

How to use dist/index.min.js in node-cli #1859

Closed
@cloudbitsum

Description

@cloudbitsum

Hi,
I am new so please excuse any basic questions? I am student in std-12 and learning IPFS. It looks great.
I want to know if there is any way to use index.min.js in node-cli.
I know that I can simply import ipfs by require("ipfs"). But the require() create a big node_module which is an issue for school project. Also I dont have option to build a browser based app.
So I am looking to use index.min.js in node-cli server side. Or some way to similarly generate a minified fine.

Doing a require of index.min.js gives error that window is missing.

Please help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/supportA question or request for support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions