ragemp-auto-reload-webpack-plugin

Webpack plugin that reload the RAGE MP server after compilation

Usage no npm install needed!

<script type="module">
  import ragempAutoReloadWebpackPlugin from 'https://cdn.skypack.dev/ragemp-auto-reload-webpack-plugin';
</script>

README

Installation

npm i ragemp-auto-reload-webpack-plugin --save-dev

Usage:

Define the plugin in your webpack configuration

const { RagempAutoReloadPlugin } = require('ragemp-auto-reload-webpack-plugin')

module.exports = {
  // ...
  plugins: [new RagempAutoReloadPlugin({serverPath: 'path/to/server.exe'})]
  // ...
}

Options

Required

string serverPath - The full path to the server.exe file