@@ -9,7 +9,6 @@ var ExtractTextPlugin = require('extract-text-webpack-plugin');
99var CommonsChunkPlugin = webpack . optimize . CommonsChunkPlugin ;
1010var fs = require ( 'fs' ) ;
1111var path = require ( 'path' ) ;
12- var ForkCheckerPlugin = require ( 'awesome-typescript-loader' ) . ForkCheckerPlugin ;
1312
1413module . exports = function makeWebpackConfig ( options ) {
1514 /**
@@ -76,13 +75,13 @@ module.exports = function makeWebpackConfig(options) {
7675
7776 < % _ if ( filters . ts ) { _ % >
7877 config . resolve = {
79- modulesDirectories : [ 'node_modules' ] ,
78+ modules : [ 'node_modules' ] ,
8079 extensions : [ '.js' , '.ts' ]
8180 } ; < % } % >
8281
8382 if ( TEST ) {
8483 config . resolve = {
85- modulesDirectories : [
84+ modules : [
8685 'node_modules'
8786 ] ,
8887 extensions : [ '.js' , '.ts' ]
@@ -158,7 +157,7 @@ module.exports = function makeWebpackConfig(options) {
158157 // Reference: https://github.com/willyelm/pug-html-loader
159158 // Allow loading Pug throw js
160159 test : / \. ( j a d e | p u g ) $ / ,
161- use : ' pug-html-loader'
160+ use : [ 'raw-loaer' , ' pug-html-loader']
162161 } , { < % } % >
163162 < % _ if ( filters . html ) { _ % >
164163 // HTML LOADER
@@ -180,7 +179,7 @@ module.exports = function makeWebpackConfig(options) {
180179 //
181180 // Reference: https://github.com/webpack/style-loader
182181 // Use style-loader in development for hot-loading
183- ? ExtractTextPlugin . extract ( { fallbackLoader : 'style-loader' , loader : [ 'css-loader' , 'postcss-loader' ] } )
182+ ? ExtractTextPlugin . extract ( { fallback : 'style-loader' , use : [ 'css-loader' , 'postcss-loader' ] } )
184183 // Reference: https://github.com/webpack/null-loader
185184 // Skip loading css in test mode
186185 : 'null-loader'
@@ -224,14 +223,6 @@ module.exports = function makeWebpackConfig(options) {
224223 * List: http://webpack.github.io/docs/list-of-plugins.html
225224 */
226225 config . plugins = [
227- /*
228- * Plugin: ForkCheckerPlugin
229- * Description: Do type checking in a separate process, so webpack don't need to wait.
230- *
231- * See: https://github.com/s-panferov/awesome-typescript-loader#forkchecker-boolean-defaultfalse
232- */
233- new ForkCheckerPlugin ( ) ,
234-
235226 // Reference: https://github.com/webpack/extract-text-webpack-plugin
236227 // Extract css files
237228 // Disabled when in test mode or not in build mode
0 commit comments