Skip to content

Latest commit

 

History

History
82 lines (46 loc) · 1.72 KB

README.md

File metadata and controls

82 lines (46 loc) · 1.72 KB

local-minifier

This is a local environment that you can use to minify your CSS, JS, & HTML files.

Getting Started

Download / Clone

Start by cloning or downloading the source files.

Clone the repo using Git:

git clone https://github.com/amardeeprai/local-minifier.git

Alternatively you can download this repository.

Install required modules

Open your terminal window and change into the source diectory where you have cloned or downloaded the repo to. Run the command:

npm install

NOTE:You will need node.js installed on your computer before you can run this command.

Initialise the environment

Open your terminal window and change into the source diectory where you have cloned or downloaded the repo to.

Once all of the required node modules have been downloaded and installed, run the command

gulp

This will generate the CSS, JS, & HTML files.

Generating HTML files

You can generate HTML files by running the following command:

gulp pages

NOTE: this can only be run from the directory where you have cloned or downloaded the repo to.

Generating CSS files

You can generate CSS files by running the following command:

gulp styles

NOTE: this can only be run from the directory where you have cloned or downloaded the repo to.

Generating JS files

You can generate JS files by running the following command:

gulp scripts

NOTE: this can only be run from the directory where you have cloned or downloaded the repo to.

License

Copyright 2017 Amardeep Rai. Licensed under an Apache-2 license.