Open Closed

Bundling - not running auto #7461


0
deltavision created

Hi,

Using:

  • Core/JQuery project.
  • ANZ v7.1 (gulp)

with reference to #7272

bundles does not auto create/update when we change in css / js files.

  • Does the auto-generate not work with gulp?
  • Must we manually run npm run create-bundles?

9 Answer(s)
  • 0
    maliming created

    Did you encounter an error when executing create-bundles?

    Or is there no automatic bunding when you update js/css?

  • 0
    deltavision created

    Hi,

    no error on running "npm run create-bundles"

    but no auto bundling, when I update my own js/css/less files. NB: less files are correctly parsed to css files

  • 0
    maliming created

    What is the path to your own js/css file?

  • 0
    deltavision created

    Hi,

    same path as other css/js files

    2019-08-09_09-27-03.jpg

  • 0
    maliming created

    hi @deltavision

    Can you share your project code or use Zero's Demo project to reproduce this issue?

    My email address: liming.ma@volosoft.com

  • 0
    deltavision created

    Hi,

    if I from command prompt execute "npm run create-bundles" - and just leave it there (watching bundle files) All is OK - and bundles are updated when ever I change something in css/js.

    2019-08-10_10-56-29.jpg

    Breaking the command prompt - stops the update of bundle files.

    The less - to css and min.css keeps running - see time in screen dump below.

    The js - to min.js stops running - see time in screen dump below.

    2019-08-10_11-04-43.jpg

  • 0
    maliming created

    Well, you should let the create-bundles command continue to watching file changes without stopping it.

  • 0
    deltavision created

    OK - I don't think that was necessary before with webpack? but I am not sure :-)

  • 0
    maliming created

    Now Zero is using Gulp. (●'◡'●)

    https://github.com/aspnetzero/aspnet-zero-core/commit/84342d45991cc23611fc347b9a51bea0ae9a4de1 https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Mvc/gulpfile.js#L224