Skip to content

Commit

Permalink
(fix): removing fork checker fixed dev server reloading
Browse files Browse the repository at this point in the history
  • Loading branch information
amcdnl committed Aug 8, 2016
1 parent 83eb69f commit 4219e47
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
6 changes: 1 addition & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,5 @@
"node_modules"
],
"compileOnSave": false,
"buildOnSave": false,
"awesomeTypescriptLoaderOptions": {
"forkChecker": true,
"useWebpackText": true
}
"buildOnSave": false
}
22 changes: 10 additions & 12 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ var webpack = require('webpack');

var CleanWebpackPlugin = require('clean-webpack-plugin');
var WebpackNotifierPlugin = require('webpack-notifier');
var ForkCheckerPlugin = require('awesome-typescript-loader').ForkCheckerPlugin;

var ENV = process.env.NODE_ENV;
var IS_PRODUCTION = ENV === 'production';
Expand All @@ -22,7 +21,8 @@ module.exports = {

resolve: {
extensions: ['', '.ts', '.js', '.json', '.css', '.scss', '.html'],
// root: root('src'),
root: root('src'),
descriptionFiles: ['package.json'],
modules: [
'node_modules',
root('src')
Expand All @@ -36,20 +36,20 @@ module.exports = {
},

devServer: {
// contentBase: './src',
port: 9999,
inline: false,
historyApiFallback: true,
lazy: false,
outputPath: root('dist'),
watchOptions: {
aggregateTimeout: 300,
poll: 1000
poll: true
},
port: 9999,
stats: {
modules: false,
cached: false,
chunk: false
}
},

output: {
path: root('dist'),
// publicPath: '/dist/',
filename: '[name].js',
sourceMapFilename: '[name].map',
chunkFilename: '[id].chunk.js'
Expand Down Expand Up @@ -80,8 +80,6 @@ module.exports = {
},

plugins: [
new ForkCheckerPlugin(),

new webpack.optimize.CommonsChunkPlugin({
name: ['vendor', 'polyfills'],
minChunks: Infinity
Expand Down

0 comments on commit 4219e47

Please sign in to comment.