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

Plugin bundle js optimization


I am using Metronic theme Demo 2 for my project but I am facing an issue which is that my plugin.bundle.js is very large (2.2 MB) and contains such plugins which I do not even need for my project. So if you guys can tell me how I can compress it or remove useless plugins from my plugin.bundle.js then it would be great. I am expecting your response soon as I have to deliver my project. Thanks in advance.


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 (2)


Hi,

Please have a look at this video tutorial to learn how to manage the assets generation and add/remove plugins as per your requirements.

Regards



Hi Sean, sorry to dig that up. (I use webpack, and deleted a lots of 3 parties and global plugins)

I followed the video that you gave.

But I'm in the same situation, where I uncomment those lines in "gulp.config.js", but the size of the bundles are still the same.

After a while I delete lines in "package.json" and thinking that it is the file responsible for the webpack. but nothing changed in the bundles files size.

I tracked those files :

"""CSS"""
'assets/plugins/global/plugins.bundle.css' --> 399 kb
'assets/css/style.bundle.css' --> 1283 kb

"""JS"""
'assets/plugins/global/plugins.bundle.js' --> 3805 kb
'assets/js/scripts.bundle.js' --> 214 kb

after all attempts and deleting the destination folders, the new generated bundles above are the same.

Can you please make a video on how to strip and low down the bundle size wit WEBPACK.

thank you

--------------


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  :(