'use strict'

module.exports = function(production) {
  return {
    module: {
      rules: [
        {
          test: /\.svg$/,
          include: /(sprites|icons)/,
          loader: 'file-loader',
          options: {
            name: `[name]${production ? '.[hash]' : ''}.[ext]`
          }
        },
        {
          test: /\.(png|gif|jpe?g|svg)$/i,
          exclude: /(sprites|icons)/,
          loader: 'file-loader',
          options: {
            path: 'img',
            name: `[name]${production ? '.[hash]' : ''}.[ext]`
          }
        }
      ]
    }
  }
}

@@ -458,17 +458,23 @@
         
-p
+outputP
 ath: 'im

fix output path for file-loader