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

Error in plugins.bundle.js preventing it from being minified/compressed


Not sure if this would category as a bug, but for the current version of Metronic version 8.17, the HTML template 13's plugin.bundle.js file has an error that's preventing the file from being compressed.

plugins.bundle.js: Unexpected token: punc «{», expected: punc «)» (line: 12897, col: 665)


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


Hi Jason,

Glad it worked happy
Feel free to let us know if you have any more issue

Thanks



Hi Jason,

Do you do this command to build the minify assets? And it doesn't work when you run this command?


gulp --demo13 --prod


Thanks



Actually, I hadn't tried with the --prod flag. I'd always minified the files using vscode extensions. I will give that a try and update this ticket when I'm done.



That's what I was missing. Thanks. Adding the --prod worked without issues.



Hi Jason,

Which build tool are you using to get this error? Gulp or webpack?

Thanks



I'm using gulp


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