From a28dd6269a1ffadbacf3c11d442fb995162b36bb Mon Sep 17 00:00:00 2001 From: Keivan Beigi Date: Wed, 26 Aug 2015 23:32:38 -0700 Subject: [PATCH] switched web pack watch to poll mode --- gulp/webpack.js | 2 -- webpack.config.js | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gulp/webpack.js b/gulp/webpack.js index c5f23df9d..64570593c 100644 --- a/gulp/webpack.js +++ b/gulp/webpack.js @@ -1,9 +1,7 @@ var gulp = require('gulp'); var webpackStream = require('webpack-stream'); var livereload = require('gulp-livereload'); - var webpackConfig = require('../webpack.config'); -webpackConfig.devtool = "#source-map"; gulp.task('webpack', function() { return gulp.src('main.js').pipe(webpackStream(webpackConfig)).pipe(gulp.dest('')); diff --git a/webpack.config.js b/webpack.config.js index 7a7117f4c..aee88a18a 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -14,6 +14,8 @@ if (phantom) { } module.exports = { + devtool : '#source-map', + watchOptions : { poll: true }, entry: { vendor: 'vendor.js', main: 'main.js' @@ -65,7 +67,7 @@ module.exports = { ], module: { - //this doesn't work yet. wainting for https://github.com/spenceralger/rcloader/issues/5 + //this doesn't work yet. waiting for https://github.com/spenceralger/rcloader/issues/5 /*preLoaders: [ { test: /\.js$/, // include .js files