github.com/GoogleContainerTools/skaffold@v1.39.18/examples/react-reload/app/webpack.config.js (about) 1 const path = require( 'path' ); 2 const HtmlWebpackPlugin = require( 'html-webpack-plugin' ); 3 4 module.exports = { 5 entry: './src/main.js', 6 output: { 7 path: path.join( __dirname, '/dist' ), 8 filename: 'main.js' 9 }, 10 devServer:{ 11 host: '0.0.0.0' 12 }, 13 module: { 14 rules: [ 15 { 16 test: /\.js$/, 17 exclude: /node_modules/, 18 use: [ 'babel-loader' ] 19 }, 20 { 21 test: /\.css$/, 22 use: [ 'style-loader', 'css-loader' ] 23 } 24 ] 25 }, 26 plugins: [ new HtmlWebpackPlugin( { template: './src/index.html' } ) ] 27 };