Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

Js File so big


Hello I have a minier Plugins.bundle.js file with the demo2 of mettonic and I can’t delete it or delete a block of code in it because when I do that the page not works correctly how I can remove this files she take 2Mb


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


Hi,

Metronic by default comes with all features included so the bundle size(css/js) is quite large. However, you can refer to this guide and reduce the bundle size by excluding unused plugins from your build.

if you need any further help please let us know.

Regards.



Hey thanks for your respond sorry bad english and when I want to delete a partie of the code highlighted with « DataPicker » I don’t use and need this …The Code not work I don’t’ know why that’s my website nexus-gw.xyz if you want to do some test with the dev tools



Hi,

In src/js/app.js can you remove the datepicker init functions if it's not in use anymore? Are you editing the source js and using gulp to compile the changes into the assets folder ?

If you need any further help can u please let me know your Metronic version and also send your app.js source code via gist.github.com ?


Regards.


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(