Add --dev-plugin to compile plugins on the fly

Add hidden development option to run the webpack compiller for the given
plugin(s) similar to the --dev option for the built-in web interface.

This requires publicPath to be set in the webpack config and an updated
version of webpack-dev-middleware to function correctly.
This commit is contained in:
Hornwitser committed 2021-03-13 21:01:53 +01:00
1 parent 5ce3fb6cc6
commit 71804df3e0
7 files changed
+24 -4

No files matched your search

+1
View File
@@ -9,6 +9,7 @@ module.exports = (env = {}) => merge(common(env), {
context: __dirname,
entry: "./web/index.jsx",
output: {
publicPath: "/plugin/global_chat/",
filename: "bundle.js",
path: path.resolve(__dirname, "dist", "web"),
},
+1
View File
@@ -9,6 +9,7 @@ module.exports = (env = {}) => merge(common(env), {
context: __dirname,
entry: "./web/index.jsx",
output: {
publicPath: "/plugin/research_sync/",
filename: "bundle.js",
path: path.resolve(__dirname, "dist", "web"),
},
@@ -9,6 +9,7 @@ module.exports = (env = {}) => merge(common(env), {
context: __dirname,
entry: "./web/index.jsx",
output: {
publicPath: "/plugin/statistics_exporter/",
filename: "bundle.js",
path: path.resolve(__dirname, "dist", "web"),
},
@@ -9,6 +9,7 @@ module.exports = (env = {}) => merge(common(env), {
context: __dirname,
entry: "./web/index.jsx",
output: {
publicPath: "/plugin/subspace_storage/",
filename: "bundle.js",
path: path.resolve(__dirname, "dist", "web"),
},