@yam-js/dev-reload
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

@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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.50latest
0.0.31dev

Version History

VersionDownloads (Last 7 Days)Published
0.1.50
0.1.40
0.1.30
0.1.20
0.1.10
0.1.00
0.0.31
0.0.10

Package Sidebar

Install

npm i @yam-js/dev-reload

Weekly Downloads

1

Version

0.1.5

License

MIT

Unpacked Size

56.7 kB

Total Files

50

Last publish

Collaborators

  • mercerk