<commit_before>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,
      runtimeCaching: [{
        handler: 'networkFirst',
        urlPattern: /^https:\/\/anna-todolist-api\.herokuapp\.com\//,
      }],
    }),
  ]
}<commit_msg>add staticFileGlobs<commit_after>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\//,
      }],
    }),
  ]
}
{'fraction_non_alphanumeric': 0.1829140461215933, 'fraction_numerical': 0.011530398322851153, 'mean_word_length': 2.3374125874125875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4508166', 'n_tokens_mistral': 686, 'n_tokens_neox': 650, 'n_words': 110}