js-starter
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

js-starter

Extra light lib to load content

Installation

Install package with that command

yarn add js-starter

and add resources in your html, for exemple :

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <link rel="stylesheet" href="/node_modules/js-starter/public/dist/app.css" />
    </head>
    <body>
        <!-- your content -->
        <script>
            window.__ENV__ = {
                resources: {
                    'css': '/build/my.css',
                    'react': '/node_modules/react/umd/react.production.min.js'',
                    'react-dom': '/node_modules/react-dom/umd/react-dom.production.min.js',
                    'js': '/build/app.js'
                }
            }
        </script>

        <script src="/node_modules/js-starter/public/dist/app.js"></script>
    </body>
</html>

Readme

Keywords

none

Package Sidebar

Install

npm i js-starter

Weekly Downloads

0

Version

1.2.0

License

MIT

Unpacked Size

171 kB

Total Files

66

Last publish

Collaborators

  • jngermon