send webpack dev url and outpath to project-manager
npm install project-manager-webpack-plugin --save-dev
import ProjectManagerWebpackPlugin from "project-manager-webpack-plugin";
const webpackConfig = {
//...
plugins: [
new ProjectManagerWebpackPlugin({
// send dev host and port
devInfo: () => ({
host: "0.0.0.0",
port: 3000,
}),
// optional, send dist info
distInfo: () => ({
version: "1.0.0",
name: "name",
}),
}),
],
};
2024-01-16 v1.0.10 emit dist info 2023-04-14 v1.0.7 support custom server id