Skip to content

Is it possible to browserify the odoo-webkit? #37

@kalmenchia

Description

@kalmenchia

Hi , can i check what can we do to make the odoo-webkit browserify and include it as a bundle.js for server that do not have npm install ?

I have tried browserify and wrote a simple main.js with
after i did npm init and npm install --save odoo-webit ,

in my main.js ,

var Auth = require('odoo-webkit');

after i did browserify main.js -o odoo_webkit_bundle.js , and included the output
to my html , in my script tag , i tried to call but Auth is not defined . i not sure what i
did make sense , as i am not too sure about whether this is possible and i do not
really understand the browserify subject. Thanks for any advice.

Regards,
kalmen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions