@barusu/template-simple-html

Boilerplates to create a simple traditional html project

Usage no npm install needed!

<script type="module">
  import barusuTemplateSimpleHtml from 'https://cdn.skypack.dev/@barusu/template-simple-html';
</script>

README

@barusu/template-simple-html


Install

npm install -g @barusu/template-simple-html
  • yarn

    yarn global add @barusu/template-simple-html
    

Usage

  • Create new html project

    barusu-template-simple-html new-html-project <project name>
    
  • Add new html page

    cd <project path>
    yarn add-page <page-name>
    
  • Start

    cd <project path>
    yarn start
    
  • Build

    cd <project path>
    yarn build
    

Notice

  • Chrome should run in port 9222 to support debug

  • Temporary file .empty.__tmp__.js will created, due to the rollup.Configuration.output cannot be empty. It is not recommended that you modify this path as this file is configured to be ignored both in vscode and git.