Skip to content
Spark UI plugin for webpack with hot reloading
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

webpack-plugin-spark

Webpack plugin for Spark UI development

Description

This webpack plugin enables use of hot reloading when developing apps for the Spark UI browser: https://www.sparkui.org

Demo

Install

Using npm:

npm install webpack-nano webpack-plugin-spark --save-dev

Usage

Create a webpack.config.js file:

const WebpackPluginSpark = require('webpack-plugin-spark');
const path = require('path');

module.exports = {
	// an example entry definition
	entry: [
		'app.js',
	]
  ...
  plugins: [
    new WebpackPluginSpark({
      progress: true,
      liveReload: true,
      static: path.join(__dirname, './dist')
    })
  ],
  watch: true, // Ensure webpack is running in watch mode
};
You can’t perform that action at this time.