From 14c55a65189ae451897393be977a7268f117f7fb Mon Sep 17 00:00:00 2001 From: Jan Miksovsky Date: Thu, 3 Oct 2019 17:22:37 -0700 Subject: [PATCH] Edits --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index d9ef15a..0a397c8 100644 --- a/README.md +++ b/README.md @@ -1 +1,22 @@ This repo shows how to use package.json to load different versions of Elix, and how to load different versions of Elix on the same page. + +The `package.json` file creates aliases for multiple versions of Elix: + +```json +"dependencies": { + "elix-7": "npm:elix@7.0.0", + "elix-8": "npm:elix@8.0.0" +} +``` + +These aliases are then referenced in paths in index.html, in HTML: + +```html + +``` + +or in JavaScript: + +```js +import DateComboBox from './node_modules/elix-8/src/DateComboBox.js'; +``` \ No newline at end of file