From bca4e1f6d84f3c9d33311df8fa13e99577264abf Mon Sep 17 00:00:00 2001 From: Kevin Brown Date: Thu, 22 Jan 2015 17:01:50 -0500 Subject: [PATCH] Add information about build types --- docs/index.html | 61 +++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 59 insertions(+), 2 deletions(-) diff --git a/docs/index.html b/docs/index.html index 04f9911c..81b015f4 100644 --- a/docs/index.html +++ b/docs/index.html @@ -31,7 +31,8 @@ slug: home
Looking for the Select2 3.5.2 docs? - We have moved them to a new location while we work on Select2 4.0. + We have moved them to a new location + while we push forward with Select2 4.0.
@@ -118,7 +119,7 @@ slug: home
 <link href="path/to/select2.min.css" />
-<script src="path/to/select2.js"></script>
+<script src="path/to/select2.min.js"></script>
 
  • @@ -128,6 +129,62 @@ slug: home +
    +

    + The different Select2 builds +

    + +

    + Select2 provides multiple builds that are tailored to different + environments where it is going to be used. If you think you need to use + Select2 in a nonstandard environment, like when you are using AMD, you + should read over the list below. +

    + + + + + + + + + + + + + + + + + + + + + + +
    Build nameWhen you should use it
    + Standard (select2.js / select2.min.js) + + This is the build that most people should be using for Select2. It + includes the most commonly used features. +
    + Full (select2.full.js / select2.full.min.js) + + You should only use this build if you need the additional features + from Select2, like the + compatibility modules or + recommended includes like + jquery.mousewheel +
    + AMD (select2.amd.js / select2.amd.full.js) + + This is the build that anyone who is using Select2 with an existing + AMD build system should use. It is also recommended that you read + the AMD compatibility documentation + to avoid any unexpected issues. +
    +
    +

    About