Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

Gulp Build issues and questions


I'm trying to understand all the options on the build using gulp


Using
`gulp --demo1` will include normal and dark mode files, but the normal are not minified.

Using
`gulp --prod --demo1` we have an error (can you check that? - error below)

So, my questions are:

- how can I build the entire assets folder with minified (for production) AND non-minified files?

- whats is the version (which build parameters) used to generated the dist folder that comes with the source code download?




PluginError [SyntaxError]: Unterminated string constant
at js_error (/home/varantes/workspace/personal/metronic/Metronic/html/tools/node_modules/terser/dist/bundle.min.js:550:11)
at parse_error (/home/varantes/workspace/personal/metronic/Metronic/html/tools/node_modules/terser/dist/bundle.min.js:686:9)
at /home/varantes/workspace/personal/metronic/Metronic/html/tools/node_modules/terser/dist/bundle.min.js:837:48
at /home/varantes/workspace/personal/metronic/Metronic/html/tools/node_modules/terser/dist/bundle.min.js:1050:24
at Object.next_token [as input] (/home/varantes/workspace/personal/metronic/Metronic/html/tools/node_modules/terser/dist/bundle.min.js:1085:40)
at peek (/home/varantes/workspace/personal/metronic/Metronic/html/tools/node_modules/terser/dist/bundle.min.js:1254:56)
at next (/home/varantes/workspace/personal/metronic/Metronic/html/tools/node_modules/terser/dist/bundle.min.js:1259:24)
at maybe_assign (/home/varantes/workspace/personal/metronic/Metronic/html/tools/node_modules/terser/dist/bundle.min.js:3448:17)
at expression (/home/varantes/workspace/personal/metronic/Metronic/html/tools/node_modules/terser/dist/bundle.min.js:3468:24)
at params_or_seq_ (/home/varantes/workspace/personal/metronic/Metronic/html/tools/node_modules/terser/dist/bundle.min.js:2048:24) {
filename: "0",
line: 5,
col: 6694,
pos: 6824,
__safety: undefined,
_stack: undefined,
plugin: "terser",
showProperties: true,
showStack: false
}


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)


Hi Vinícius,

We have this issue in the recent version. At the moment, we could not resolve it yet. We will find a way to fix it.

Thanks


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(