B
B
bio2016-11-29 14:52:00
webpack
bio, 2016-11-29 14:52:00

How to start webpack-dev-server with existing php project?

Good afternoon!
Tell me how to configure the scripts to be updated during reassembly?
webpack config

{
    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',
}

It is launched using the webpack --config webpack.project1.js --watch
Project Server command on 127.0.0.15
I tried to set it up using google guides, but it did not work out.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question