@novalua/component-builder-plugin

1.0.0 • Public • Published

component-builder-plugin

A component builder plugin for snowpack.

Usage

  • Add the plugin to your snowpack configuration file:

snowpack.config.mjs

export default {
  plugins: ["@novalua/component-builder-plugin"],
}
  • Create a template for your html file inside the public folder

public/template.html

<!DOCTYPE html>
<html>
  <body>
    <main>{example}</main>
  </body>
</html>
  • Add your index html file:

public/index.html

<!DOCTYPE html>
<html>
  <body></body>
</html>
  • Create your components:

Every component should sit inside the src/components folder, with the same name as it's folder.

src/components/example/example.html

<div>I am an example component 😎</div>

Bug report

Found any bug? please open an issue

Readme

Keywords

none

Package Sidebar

Install

npm i @novalua/component-builder-plugin

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

2.99 kB

Total Files

3

Last publish

Collaborators

  • novalua