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

How to Minify the Javascript


Can you please tell me how to minify the javascript? I have some changes in the script.


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


Hi,

May I know which template and version are you using ?

Where did you modify the code ? In the source folder or assets folder ? By right the css/js code is modified in the src folder and compiled into assets folder with gulp or webpack builders as stated in the docs.

Regards.



I am using seven_html_pro_v1.1.4 ( I have purchased this version) . I have modified the src code javascript and i need compile it into assets folder. Can you please help me to how to minify the javascript?



Hi,

Open your terminal/command prompt.
Navigate to your project tools directory. Then use the following command to rebuild and minify your JavaScript:

yarn
gulp --prod

For more information, please the documentation here;
https://preview.keenthemes.com/html/seven-html-pro/docs/getting-started/build/gulp

Thanks



Thank you for your support



You're welcome! If you have any more questions or if there's anything else I can help you with, feel free to ask.



This is a good and quality article that I just read. Thank you very much for sharing the article.
fnaf unblocked



JSMin is a command-line JavaScript minification tool and library that helps you minify your JavaScript code and make it as small as papa's games possible.


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