switched web pack watch to poll mode

This commit is contained in:
Keivan Beigi 2015-08-26 23:32:38 -07:00
parent 53985a282d
commit a28dd6269a
2 changed files with 3 additions and 3 deletions

View File

@ -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(''));

View File

@ -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