Skip to content

Commit

Permalink
Allow at-loader to use async error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
seanf committed Jan 30, 2018
1 parent f41a5f3 commit cc6aeb7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/zanata-frontend/src/webpack.config.js
Expand Up @@ -20,6 +20,10 @@ var ReactIntlAggregatePlugin = require('react-intl-aggregate-webpack-plugin')
var ReactIntlFlattenPlugin = require('react-intl-flatten-webpack-plugin')
var ManifestPlugin = require('webpack-manifest-plugin')
var cssNano = require('cssnano')
// `CheckerPlugin` is optional. Use it if you want async error reporting.
// We need this plugin to detect a `--watch` mode. It may be removed later
// after https://github.com/webpack/webpack/issues/3460 will be resolved.
const { CheckerPlugin } = require('awesome-typescript-loader')

/* Helper so we can use ternary with undefined to not specify a key */
function dropUndef (obj) {
Expand Down Expand Up @@ -222,6 +226,8 @@ module.exports = function (env) {
})
},

new CheckerPlugin(),

/* Outputs css to a separate file per entry-point.
Note the call to .extract above */
new ExtractTextPlugin({
Expand Down

0 comments on commit cc6aeb7

Please sign in to comment.