Webpack plugin for Spark UI development
This webpack plugin enables use of hot reloading when developing apps for the Spark UI browser: https://www.sparkui.org
Using npm:
npm install webpack-nano webpack-plugin-spark --save-dev
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
};