Skip to content

Commit e2d2629

Browse files
committed
Merge pull request #1 from rw251/master
Webpack.config tweaked to enable webpack --watch under Windows
2 parents 3f5f431 + b4276af commit e2d2629

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

1-basic-react/webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
var debug = process.env.NODE_ENV !== "production";
22
var webpack = require('webpack');
3+
var path = require('path');
34

45
module.exports = {
5-
context: __dirname + "/src",
6+
context: path.join(__dirname, "src"),
67
devtool: debug ? "inline-sourcemap" : null,
78
entry: "./js/client.js",
89
module: {

0 commit comments

Comments
 (0)