-
Couldn't load subscription status.
- Fork 25
HelixUI with Vanilla HTML
Ryan Johnson edited this page Feb 3, 2020
·
2 revisions
(a.k.a. No framework)
- Latest stable NodeJS (for the
npmandnpxcommand-line utilities) -
helix-uiv0.18.0 or later
(all paths are relative to the root of the project directory)
- Web server assets live in
public/ - Application assets live in
public/assets/(coded by you) - Vendor assets live in
public/vendor/(coded by 3rd party)
npm install helix-ui vendor-copy-
vendor-copyallows you to automatically copy bundled assets to your project afternpm install.
Include the following configurations:
{
"scripts": {
"postinstall": "vendor-copy"
},
"vendorCopy": [
{
"from": "node_modules/helix-ui/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js",
"to": "public/vendor/webcomponents-loader.js"
},
{
"from": "node_modules/helix-ui/node_modules/@webcomponents/webcomponentsjs/bundles",
"to": "public/vendor/bundles"
},
{
"from": "node_modules/helix-ui/dist/css/helix-ui.min.css",
"to": "public/vendor/helix-ui.min.css"
},
{
"from": "node_modules/helix-ui/dist/js/helix-ui.module.min.js",
"to": "public/vendor/helix-ui.module.min.js"
},
{
"from": "node_modules/helix-ui/dist/js/helix-ui.min.js",
"to": "public/vendor/helix-ui.min.js"
}
]
}Run the following to copy files configured via the vendorCopy configuration, above.
npx vendor-copyNOTE: You may also want to verify that your postinstall script is working as expected, by running npm install.
Follow the instructions in the "Getting Started" guide, starting from "Consuming Assets" (we've already handled steps 1 and 2 in the instructions above).
- Be aware of built-in methods and properties of HTMLElement and its prototype chain.
- Node ← Element ← HTMLElement
-
WARNING: Be aware that
autocompletefor forms has browser compatibility issues.
TBD...