The steps below for the Default Webpack Package. If you want to use the Gulp, go to this Gulp Quick Start section.
Download the latest theme source from the marketplace.
Download and install Node.js from nodejs.org/en/download/
Start command prompt window or terminal and change directory to
Install the latest npm.
npm install --global npm@latest
Install yarn via the npm.
npm install --global yarn
Don't forget to run
yarn upgradeafter every Metronic updates released in order to install newly added or updated 3rd-party plugins.
npm cache clean --forcecommand, if installation had failed at any step. Retry from start after it done.
Install yarn dependencies. Must execute in
This below command will compile all the assets(sass, js, media) to
[metronic]/theme/html/[demo]/dist/assetsfolder. State which demo to compile and append at the of the command. Eg.
npm run build --demo1
Start the localhost server.
npm run localhost --demo1
Keep the console open. Open this link to run
http://localhost:8080/. It will take a few seconds for the build to finish.
Ctrl+Cto quit from localhost.
For more information about the
Webpack build tool, click here.