OpenSprinkler Forums OpenSprinkler Mobile and Web App minifying updated main.js?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #67935

    guyberliner
    Participant

    Any suggestions on how best to minify main.js to produce a new app.js, if we want to make a change to it? Are there any tools you use for this? I don’t see anything like a package.json for it here.

    #67954

    guyberliner
    Participant

    Ok, I can see app.js is produced by webpack, apparently. But can anybody tell me the command line I can use? (ie, precisely which other artifacts besides main.js do I need to feed into webpack to produce app.js)?

    #67956

    Samer
    Keymaster

    In order to build the app.js you can use the following command:

    npx grunt buildFW

    The result will be an app.js and app.css which should be what you need.

    Please let me know if you run into any issues!

    #67970

    guyberliner
    Participant

    Ok, but I also don’t see a Gruntfile either, so I have no definition for the target buildFW you refer to.

    #67971

    Samer
    Keymaster

    Please clone the repository from our repository here:

    https://github.com/opensprinkler/opensprinkler-app

    The Gruntfile is present there along with the package.json with all dependencies.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums OpenSprinkler Mobile and Web App minifying updated main.js?