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)
-
1
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-bundlescommand, becasue of that we have removed them from bundles.json to speed up development time project startup time.Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
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-bundlescommand, 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-bundlesruns 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
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
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-L8C64Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)