old_contents: var path = require('path');
  var SWPrecacheWebpackPlugin = require('sw-precache-webpack-plugin');
  
  module.exports = {
    context: __dirname,
    devtool: '#source-map',
  
    entry: {
      main: path.resolve(__dirname, './src/boot.js'),
    },
  
    output: {
      path: path.resolve(__dirname, './assets'),
      filename: 'bundle.js',
      publicPath: '/assets/'
    },
  
    module: {
      loaders: [{
        test: /\.js(x)?$/,
        loader: 'babel-loader',
        query: {
          presets: ['es2015', 'react']
        },
        exclude: /node_modules/
      }]
    },
    plugins: [
      new SWPrecacheWebpackPlugin({
        cacheId: 'todolist',
        filename: 'sw.js',
        filepath: './sw.js',
        maximumFileSizeToCacheInBytes: 4194304,
        minify: true,
        staticFileGlobs: [
          './index.html',
          './assets/**/*'
        ],
        runtimeCaching: [{
          handler: 'networkFirst',
          urlPattern: /^https:\/\/anna-todolist-api\.herokuapp\.com\//,
        }],
      }),
    ]
  }
  
new_contents: var path = require('path');
  var SWPrecacheWebpackPlugin = require('sw-precache-webpack-plugin');
  
  module.exports = {
    context: __dirname,
  
    entry: {
      main: path.resolve(__dirname, './src/boot.js'),
    },
  
    output: {
      path: path.resolve(__dirname, './assets'),
      filename: 'bundle.js',
      publicPath: 'todolist-pwa-demo-react/assets/'
    },
  
    module: {
      loaders: [{
        test: /\.js(x)?$/,
        loader: 'babel-loader',
        query: {
          presets: ['es2015', 'react']
        },
        exclude: /node_modules/
      }]
    },
    plugins: [
      new SWPrecacheWebpackPlugin({
        cacheId: 'todolist',
        filename: 'sw.js',
        filepath: './sw.js',
        maximumFileSizeToCacheInBytes: 4194304,
        minify: true,
        staticFileGlobs: [
          './index.html',
          './assets/**/*'
        ],
        runtimeCaching: [{
          handler: 'networkFirst',
          urlPattern: /^https:\/\/anna-todolist-api\.herokuapp\.com\//,
        }],
      }),
    ]
  }
  
subject: modify webpack config for production