Base solution for your next web application
Open Closed

Bundle and minify does not work on Azure #7090


User avatar
0
ozgurkovan created

Hi, in my localhost everthing works fine but when I deploy on Azure, Azure only get the "*.min.js" I think. Azure website can not get the full js codes. If I copy from *.js to *.min.js , it works like it should be. Also npm run build command is not working. 'npm ERR! missing script: build' and there is no build command in package.json file. How can I bundle and minify for azure?


3 Answer(s)
  • User Avatar
    0
    ozgurkovan created

    Fixed it. In bundleconfig.js file, It has to be shown input file for full js and as output file min.js. I added all of them and it works fine now. Thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @ozgurkovan

    Could you share your AspNet Zero version ? And the screenshot of running "npm run build" command ?

    Thanks,

  • User Avatar
    0
    ozgurkovan created

    AspNet Zero version is 6.9.0.