Skip to content

Commit 653768d

Browse files
author
Richard Williams
committed
Using path.join in config to enable webpack --watch under Windows
1 parent 3f5f431 commit 653768d

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)