Skip to content
This repository has been archived by the owner on Jan 18, 2019. It is now read-only.

Commit

Permalink
fix(build): Use newer awesome-typescript-loader plugin
Browse files Browse the repository at this point in the history
see #23
  • Loading branch information
hypery2k committed Jan 19, 2017
1 parent 573d1a3 commit 02c1162
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions etc/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ const webpack = require('webpack');
/*
* Webpack Plugins
*/
const TsConfigPathsPlugin = require('awesome-typescript-loader').TsConfigPathsPlugin;
const {TsConfigPathsPlugin, CheckerPlugin} = require('awesome-typescript-loader');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ForkCheckerPlugin = require('awesome-typescript-loader').ForkCheckerPlugin;
const WebpackNotifierPlugin = require('webpack-notifier');

debugLog('Using following appConfig:', appConfig);
Expand Down Expand Up @@ -241,12 +240,12 @@ var config = {
new TsConfigPathsPlugin(),

/*
* Plugin: ForkCheckerPlugin
* Plugin: CheckerPlugin
* Description: Do type checking in a separate process, so webpack don't need to wait.
*
* See: https://github.com/s-panferov/awesome-typescript-loader#forkchecker-boolean-defaultfalse
* See: https://github.com/s-panferov/awesome-typescript-loader#configuration
*/
new ForkCheckerPlugin(),
new CheckerPlugin(),

/*
* Plugin: OccurenceOrderPlugin
Expand Down Expand Up @@ -310,7 +309,7 @@ var config = {

};

if( os.platform() !== 'win32') {
if (os.platform() !== 'win32') {
// FIXME, see https://github.com/holisticon/angular-common/issues/11
config.plugins.push(
/**
Expand Down

0 comments on commit 02c1162

Please sign in to comment.