0.1.5 • Published 11 months ago

@yam-js/dev-reload v0.1.5

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

@yam-js/dev-reload

@yam-js/dev-reload is a tool that enables fast reloading during development in YamJS.

Installation

To install @yam-js/dev-reload, run the following command:

npm install --dev @yam-js/dev-reload

Getting Started

JavaScript

After installing, import initializeDevReload and execute it on plugin start. This will spawn a web server listening to the /reload route on port 8000.

import { initializeDevReload } from '@yam-js/dev-reload';

initializeDevReload();

Webpack

@yam-js/dev-reload comes with a webpack wrapper. To use it, replace your normal Webpack command with yamjs-dev-webpack.

This will start a Webpack development server with reloading enabled.

Watcher

If you don't use webpack, no worries. You can use a watcher instead. Launch yamjs-dev-watcher [path] [extensions] with your server.

yamjs-dev-watcher src js
yamjs-dev-watcher src js,ts
yamjs-dev-watcher src js,jsx,ts,tsx
0.1.5

11 months ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.3

1 year ago

0.0.1

1 year ago