How to make webpack-dev-server with an existing php project?

Good day!

Tell me how to configure the update script during the rebuild ?

Config webpage
{
 entry: {
 app: './project1/bootstrap.js',
 vendor: './project1/vendor.js'
},
 output: {
 chunkFilename: '[name].[chunkhash].js',
 filename: '[name].[chunkhash].js',
 path: path.resolve(__dirname, '../public/project1'),
 publicPath: '/project1/'
},

 devtool: 'eval',
}


Runs using command webpack --config webpack.project1.js --watch
Project server at 127.0.0.15

I tried to configure nakopleniem guides, but failed.
July 2nd 19 at 13:25
0 answer

Find more questions by tags Webpack