const merge = require('webpack-merge');
const commonPreset = require('knapsack-preset-common');
const namedModules = require('knapsack-plugin-named-modules');
const caseSensitive = require('knapsack-plugin-case-sensitive');
const missingModules = require('knapsack-plugin-missing-modules');

module.exports = (opts) =>
  merge.smart(
    commonPreset(opts),
    missingModules(opts),
    namedModules(),
    caseSensitive(),
    {
      devtool: 'cheap-module-source-map',
      bail: false,
      // In most cases this will be implicitly set to true but we set it
      // explicitly here just in case
      cache: true,
      // Don't use hashes for better performance
      output: {
        filename: '[name].js',
        chunkFilename: '[name].chunk.js',
      },
      // We do not want to clutter console with these reports
      performance: {
        hints: false,
      },
    }
  );

const get = require('lodash/get');
const merge = require('webpack-merge');
const commonPreset = require('knapsack-preset-common');
const namedModules = require('knapsack-plugin-named-modules');
const caseSensitive = require('knapsack-plugin-case-sensitive');
const missingModules = require('knapsack-plugin-missing-modules');

module.exports = (opts) =>
  merge.smart(
    commonPreset(opts),
    missingModules(get(opts, 'missing-modules')),
    namedModules(),
    caseSensitive(),
    {
      devtool: 'cheap-module-source-map',
      bail: false,
      // In most cases this will be implicitly set to true but we set it
      // explicitly here just in case
      cache: true,
      // Don't use hashes for better performance
      output: {
        filename: '[name].js',
        chunkFilename: '[name].chunk.js',
      },
      // We do not want to clutter console with these reports
      performance: {
        hints: false,
      },
    }
  );

Fix config value in development seed
Fix config value in development seed
