Introducing ReUI:Open-source UI components and apps built with React, Next.js and Tailwind CSS
Browse ReUI

Custom JS not getting bundled using Webpack


I tried npm run build --demo1 and noticed js/custom/is not getting bundled.


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


It’s likely that your js/custom/is file is not properly included in your Webpack configuration. Ensure that the entry point for js/custom/is is defined in your Webpack config, or that it's being imported correctly in your main JavaScript file. Also, check if it’s excluded in any of your rules or plugins.
You may also want to check Pesco online bill with your reference number.



Hi

Do you run the gulp in this folder?
/metronic_asp.net-core_v8.2.9/Starterkit/_keenthemes/tools

Please try to remove node_modules folder, package-lock.json or yarn.lock files if any. Then retry with the installation "npm install"

Then run "gulp --demo1". Check the generated assets in
/metronic_asp.net-core_v8.2.9/Starterkit/wwwroot/assets

Thanks



Hi Faisal,
Metronic v8.2.6, v8.2.7, v8.2.8, v8.2.9 both HTML and ASP.NET Core.



Hi

May I know which version are you using and which app? HTML version, or other in other frameworks?

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