lnked/react-starter

View on GitHub
webpack/plugins/development.js

Summary

Maintainability
A
0 mins
Test Coverage
const define = require('../define')
const webpack = require('webpack')
const WebpackNotifierPlugin = require('webpack-notifier')
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin')

const plugins = [
  new webpack.WatchIgnorePlugin([/cs{2}\.d\.ts$/, /scs{2}\.d\.ts$/, /node_modules/]),

  new WebpackNotifierPlugin({ alwaysNotify: true }),

  new CaseSensitivePathsPlugin(),

  // make hot reloading work
  new webpack.HotModuleReplacementPlugin(),

  // show module names instead of numbers in webpack stats
  new webpack.NamedModulesPlugin(),

  // don't spit out any errors in compiled assets
  new webpack.NoEmitOnErrorsPlugin(),
]

module.exports.config = plugins