dynamic plugin paths (WIP)

This commit is contained in:
2020-12-02 22:25:20 +01:00
parent 54dc041a20
commit 9bc84cae6b
5 changed files with 46 additions and 43 deletions
+6 -4
View File
@@ -97,13 +97,15 @@ namespace Zero.Web.DevServer
PidUtils.KillPort((ushort)port, true);
// get all plugins which need to be passed to vite
var plugins = new List<dynamic>()
List<string> plugins = new();
foreach (var plugin in pluginResolver.Plugins)
{
new
if (!String.IsNullOrEmpty(plugin.Options.PluginPath))
{
path = Path.Combine(env.ContentRootPath, "../", "ViteZero.Plugin", "vite.plugin.js")
plugins.Add(plugin.Options.PluginPath);
}
};
}
// create and run the vite script
ProcessProxy process = new ProcessProxy(workingDirectory, "npm", options.Value.ForwardLog)