# import-html-entry **Repository Path**: megurine/import-html-entry ## Basic Information - **Project Name**: import-html-entry - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-07-09 - **Last Updated**: 2021-11-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # import-html-entry Treats the index html as manifest and loads the assets(css,js), get the exports from entry script. ```html test ``` ```js import importHTML from 'import-html-entry'; importHTML('./subApp/index.html') .then(res => { console.log(res.template); res.execScripts().then(exports => { const mobx = exports; const { observable } = mobx; observable({ name: 'kuitos' }) }) }); ```