Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Why are Style.bundle.css and plugins.bundle.css not minified #11664


User avatar
0
ISL created

Hey Asp.net zero

I noticed that the following files have been removed from the bundles.json I would just like to know why?

As now the below files are not minified which is not the normal standard https://demo.aspnetzero.com/assets/metronic/themes/default/css/style.bundle.css https://demo.aspnetzero.com/assets/metronic/themes/default/plugins/global/plugins.bundle.css

Thanks


3 Answer(s)
  • User Avatar
    1
    ismcagdas created
    Support Team

    Hi @ISL

    Normally, these files must be minified, we will check our pipeline about this problem. These files are created by npm run create-dynamic-bundles command, becasue of that we have removed them from bundles.json to speed up development time project startup time.

  • User Avatar
    0
    ISL created

    Hi @ISL

    Normally, these files must be minified, we will check our pipeline about this problem. These files are created by npm run create-dynamic-bundles command, becasue of that we have removed them from bundles.json to speed up development time project startup time.

    Hi Asp.net Zero

    Checked the code and it seems the command npm run create-dynamic-bundles runs the gulpfile.js buildDev which has production = false and does not minify.

    The build command used for production inside the gulp file will not create the according minified files now.

    How do the minified files for the mentioned CSS files then get created? https://demo.aspnetzero.com/assets/metronic/themes/default/css/style.bundle.css https://demo.aspnetzero.com/assets/metronic/themes/default/plugins/global/plugins.bundle.css

    Kind Regards

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You are right sorry. For production, you need to run gulp build, see https://github.com/aspnetzero/aspnet-zero-core/blob/dev/angular/package.json#L8C64-L8C64