2.0.37 • Published 9 months ago

@pulpo/components v2.0.37

Weekly downloads
1
License
MIT
Repository
-
Last release
9 months ago

Built With Stencil

Quick development process

Start stencil serve in watch mode by running the following command on components folder

npm run start

This will start a local server running on port 3334 that will refresh the bundle on each change, now you need to got to app nuxt.config.ts file and replace the line

{ src: `components/components.esm.js?_=${Date.now()}`, type: 'module', rel: 'preload' }

with

{ src: 'http://localhost:3333/dist/components/components.esm.js, type: 'module', rel: 'preload' }

This will tell nuxt to include the components build from the stencil watch server, now each change you do will automatically rebuild and if you refresh the page on the application it will reload the changes.