Lightweight and user-friendly front-end library.
To get started, set the loading path for the Purease module, then import your entry file.
index.html
<script type="importmap">
{
"imports": {
"purease": "https://cdn.jsdelivr.net/npm/purease@x.x.x/dist/index.js"
}
}
</script>
<script type="module" src="index.js"></script>It can also carry parameters and global variables.
<script>
purease = {
'config': {
'cdn': 'https://cdn.jsdelivr.net',
},
'global': {},
};
</script>index.js
import * as purease from 'purease';
class Page extends clickgo.AbstractPage {
public async main(): Promise<void> {
// --- Write here ---
}
}
purease.launcher(Page);After installing with NPM, you'll get code hints.
$ npm i purease --save-devClone and visit "dist/test/index.html".
This library is published under Apache-2.0 license.
Hamburger Menu SVG Vector
Close Square SVG Vector
