Build tools

Learn how to use Argons’s included npm scripts to compile source code, run tests, and more.


Tooling setup

You can install the Argon Dashboard using NPM:

npm i @creative-tim-official/argon-dashboard-free

To see more details please visit the following link

Argon uses NPM scripts for its build system. Our package.json includes convenient methods for working with the framework, including compiling code, running tests, and more.

To use our build system and use Sass to customize your website you’ll need a copy of Argon’s source files and Node. Follow these steps and you should be ready to rock:

  1. Download and install Node.js, which we use to manage our dependencies.
  2. Navigate to the root /argon directory and run npm install to install our local dependencies.

When completed, you’ll be able to run the various commands provided from the command line.

Using Gulp

Task Description
gulp gulp starts a Browsersync instance on port 3000 served from dist, defaults to index.html with the modifications made in SASS or HTML.
gulp build gulp build creates the /dist directory with compiled files.

Autoprefixer

Argon uses Autoprefixer (included in our build process) to automatically add vendor prefixes to some CSS properties at build time. Doing so saves us time and code by allowing us to write key parts of our CSS a single time while eliminating the need for vendor mixins like those found in v3.

Troubleshooting

Should you encounter problems with installing dependencies, uninstall all previous dependency versions (global and local). Then, rerun npm install.