/* eslint-disable */
//noinspection Eslint
const BrowserSyncPlugin = require('browser-sync-webpack-plugin');
//noinspection Eslint
const ExtractTextPlugin = require("extract-text-webpack-plugin");

//noinspection Eslint
module.exports = {
    // eslint-disable-line
    entry:   __dirname + '/src/main/resources/static/js/main.js',
    devtool: 'eval-source-map',
    output:  {
        filename: 'main.js', // eslint-disable-line
        path:     __dirname + '/target/classes/static/dist/' // copy to target
    },
    module:  {
        rules: [
            {
                test:    /\.js$/,
                exclude: /node_modules/,
                use:     {
                    loader: 'babel-loader'
                }
            }, {
                test:    /\.css$/,
                exclude: /node_modules/,
                use:     ExtractTextPlugin.extract({
                    fallback: 'style-loader',
                    use:      'css-loader'
                })
            }, {
                test:    /\.js$/,
                enforce: 'pre',
                exclude: /node_modules/,
                use:     {
                    loader: 'eslint-loader'
                }
            }
        ]
    },
    plugins: [
        new ExtractTextPlugin('bundle.css', {allChunks: true}), //
        new BrowserSyncPlugin({
            proxy: 'http://localhost:8080/'
        })
    ]
};

/* eslint-disable */
const BrowserSyncPlugin = require('browser-sync-webpack-plugin');
const ExtractTextPlugin = require("extract-text-webpack-plugin");


module.exports = {
    entry:   __dirname + '/src/main/resources/static/js/main.js',
    devtool: 'eval-source-map',
    output:  {
        filename: 'main.js',
        path:     __dirname + '/target/classes/static/dist/' // copy to target
    },
    module:  {
        rules: [
            {
                test:    /\.js$/,
                exclude: /node_modules/,
                use:     {
                    loader: 'babel-loader'
                }
            }, {
                test:    /\.css$/,
                exclude: /node_modules/,
                use:     ExtractTextPlugin.extract({
                    fallback: 'style-loader',
                    use:      'css-loader'
                })
            }, {
                test:    /\.js$/,
                enforce: 'pre',
                exclude: /node_modules/,
                use:     {
                    loader: 'eslint-loader'
                }
            }
        ]
    },
    plugins: [
        new ExtractTextPlugin('bundle.css', {allChunks: true}), //
        new BrowserSyncPlugin({
            proxy: 'http://localhost:8080/'
        })
    ]
};

Update dependencies, migrate webpack dev conf + babel + adapt to new react v16
Update dependencies, migrate webpack dev conf + babel + adapt to new react v16
