@pulpo/components
v2.0.37
Published
![Built With Stencil](https://img.shields.io/badge/-Built%20With%20Stencil-16161d.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjIuMSwgU1ZHIEV4cG9ydCBQbHVn
Downloads
11
Readme
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.