/**
 * @fileOverview Webpack basic configuration file.
 */

const ExtractTextPlugin = require('extract-text-webpack-plugin');

module.exports = {
  entry: {
    app: './front/js/app.boot.js',
  },
  output: {
    path: './public/dist',
  },
  devtool: 'source-map',
  module: {
    rules: [
      {
        test: /\.js$/,
        exclude: /node_modules/,
        use: [
          {
            loader: 'eslint-loader',
            options: {configFile: './.eslintrc'},
          },
          {
            loader: 'babel-loader',
          }
        ],
      },
      {
        test: /\.scss$/,
        use: ExtractTextPlugin.extract({
          fallbackLoader: 'style-loader',
          loader: 'css-loader?sourceMap&minimize!sass-loader?sourceMap',
        }),
      }
    ],
  },
};

/**
 * @fileOverview Webpack basic configuration file.
 */

const ExtractTextPlugin = require('extract-text-webpack-plugin');

module.exports = {
  entry: {
    app: './front/js/app.boot.js',
  },
  output: {
    path: './public/dist',
  },
  devtool: 'source-map',
  module: {
    rules: [
      {
        test: /\.js$/,
        exclude: /node_modules/,
        loader: 'eslint-loader',
        enforce: 'pre',
        query: {
          configFile: './.eslintrc',
        },
      },
      {
        test: /\.js$/,
        exclude: /node_modules/,
        loader: 'babel-loader',
      },
      {
        test: /\.scss$/,
        use: ExtractTextPlugin.extract({
          fallback: 'style-loader',
          use: 'css-loader?sourceMap&minimize!sass-loader?sourceMap',
        }),
      }
    ],
  },
};

Mark eslint-loader as "pre" loader, update extract-text-plugin option names
Mark eslint-loader as "pre" loader, update extract-text-plugin option names
