All Projects → Izhaki → Nodemon Webpack Plugin

Izhaki / Nodemon Webpack Plugin

Licence: mit
A webpack plugin that uses Nodemon to start and reload the server.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Nodemon Webpack Plugin

Node Docker Good Defaults
sample node app for Docker examples
Stars: ✭ 1,944 (+1196%)
Mutual labels:  nodemon
Libeventinterface
C++实现,对libevent库二次开发,解决libevent和自有服务融合问题
Stars: ✭ 146 (-2.67%)
Mutual labels:  server
Carmelo
Carmelo is a fast, scalable Java server framework designed for online games. It uses Netty and Fastjson for highly efficient network transmission and supports both TCP/HTTP protocols.
Stars: ✭ 148 (-1.33%)
Mutual labels:  server
Worker Plugin
👩‍🏭 Adds native Web Worker bundling support to Webpack.
Stars: ✭ 1,840 (+1126.67%)
Mutual labels:  webpack-plugin
Nodejs Shopping Cart
NodeJS Shopping Cart - NodeJS, Express, Express-Session, Express handlebars (hbs)
Stars: ✭ 144 (-4%)
Mutual labels:  nodemon
Ether.network
https://github.com/Eastrall/Sylver
Stars: ✭ 147 (-2%)
Mutual labels:  server
Webpack Require From
Webpack plugin that allows to configure path or URL for fetching dynamic imports
Stars: ✭ 142 (-5.33%)
Mutual labels:  webpack-plugin
Dragonfly
Minecraft (Bedrock Edition) server software written in Go
Stars: ✭ 148 (-1.33%)
Mutual labels:  server
How To Secure A Linux Server
An evolving how-to guide for securing a Linux server.
Stars: ✭ 11,939 (+7859.33%)
Mutual labels:  server
Obsolete Webpack Plugin
🌈 A Webpack plugin generates a browser-side standalone script that detects browser compatibility based on `Browserslist` and prompts website users to upgrade it.
Stars: ✭ 148 (-1.33%)
Mutual labels:  webpack-plugin
Form Data
A module to create readable `"multipart/form-data"` streams. Can be used to submit forms and file uploads to other web applications.
Stars: ✭ 1,947 (+1198%)
Mutual labels:  server
Stelace
Open-source marketplace backend in Node.js, empowering Web platforms with Search API, Automation, Auth, Headless CMS… ⚡ 💻
Stars: ✭ 144 (-4%)
Mutual labels:  server
Hads
📚 Markdown superpowered documentation for Node.js
Stars: ✭ 147 (-2%)
Mutual labels:  server
Udpt
A lightweight UDP torrent tracker
Stars: ✭ 143 (-4.67%)
Mutual labels:  server
Apiserver
基于Laravel的API服务端架构代码
Stars: ✭ 148 (-1.33%)
Mutual labels:  server
Markdownd
simple markdown server (optional indexing, no symlinks) report bugs: https://github.com/aerth/markdownd/issues (Heroku takes a couple seconds to load. Patience...)
Stars: ✭ 142 (-5.33%)
Mutual labels:  server
Coroute
Node HTTP reverse-proxy server
Stars: ✭ 147 (-2%)
Mutual labels:  server
Webpack Babel Multi Target Plugin
A Webpack plugin that works with Babel to allow differential loading - production deployment of ES2015 builds targeted to modern browsers, with an ES5 fallback for legacy browsers.
Stars: ✭ 150 (+0%)
Mutual labels:  webpack-plugin
Openmicroscopy
OME (Open Microscopy Environment) develops open-source software and data format standards for the storage and manipulation of biological light microscopy data. A joint project between universities, research establishments and industry in Europe and the USA, OME has over 20 active researchers with strong links to the microscopy community. Funded by private and public research grants, OME has been a major force on the international microscopy stage since 2000.
Stars: ✭ 148 (-1.33%)
Mutual labels:  server
Servermonitor
💓 Laravel package to periodically monitor the health of your server and application.
Stars: ✭ 148 (-1.33%)
Mutual labels:  server

Nodemon Webpack Plugin

GitHub Workflow Status

Uses Nodemon to watch and restart your module's output file (presumably a server), but only when webpack is in watch mode (ie, --watch).

Saves the need for installing, configuring and running Nodemon as a separate process.

Installation

npm install nodemon-webpack-plugin --save-dev

Usage

const NodemonPlugin = require('nodemon-webpack-plugin'); // Ding

module.exports = {
  entry: './src/server.js',
  output: {
    path: path.resolve('./dist'),
    filename: 'server.js',
  },
  plugins: [
    new NodemonPlugin(), // Dong
  ],
};

Then:

$ webpack --watch

Modes

Zero-config mode

new NodemonPlugin();

Will watch and restart the output file.

With config

Provide a Nodemon config object, like so:

new NodemonPlugin({
  // If using more than one entry, you can specify
  // which output file will be restarted.
  script: './dist/server.js',

  // What to watch.
  watch: path.resolve('./dist'),

  // Arguments to pass to the script being watched.
  args: ['demo'],

  // Node arguments.
  nodeArgs: ['--debug=9222'],

  // Files to ignore.
  ignore: ['*.js.map'],

  // Extensions to watch.
  ext: 'js,njk,json',

  // Unlike the cli option, delay here is in milliseconds (also note that it's a string).
  // Here's 1 second delay:
  delay: '1000',

  // Detailed log.
  verbose: true,
});

Example output

Hash: 1c0ed85f7670873d6269
Version: webpack 5.0.0-beta.4
Time: 42ms
Built at: 2019-11-12 23:51:57
    Asset      Size
server.js  2.41 KiB  [emitted]  [name: main]
Entrypoint main = server.js
./tmp/server.js 285 bytes [built]
    + 2 hidden modules

[nodemon] restarting due to changes...
[nodemon] starting `node tmp/dist/server.js`
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].