From 3b3f4d779465a8639ec76e395a667a2bbd6c5248 Mon Sep 17 00:00:00 2001 From: Behind The Math Date: Sun, 3 Mar 2019 11:36:59 -0500 Subject: [PATCH] Update README with instructions for building from the source --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index a09303c..4a2d0ae 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,18 @@ _Pjax does not rely on other libraries, like jQuery or similar. It is written en ``` - Use a bundler like Webpack. (`index.js` cannot be used in the browser without a bundler). +- Or you can clone the repo and build the bundle from the source using npm: + ```shell + git clone https://github.com/MoOx/pjax.git + cd pjax + npm install + npm run build + ``` + and then link a script tag to either `pjax.js` or `pjax.min.js`. E.g.: + ```html + + ``` + --- ## What Pjax Does