webpack-plugin-spark

1.0.3 • Public • Published

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
};
 

Package Sidebar

Install

npm i webpack-plugin-spark

Weekly Downloads

3

Version

1.0.3

License

ISC

Unpacked Size

14.6 kB

Total Files

9

Last publish

Collaborators

  • tvlabweb