Skip to content

Commit 8d02baa

Browse files
committed
Fix issue with path being undefined on Windows
1 parent 56771c4 commit 8d02baa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/cli.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ const { copyDir } = require('./copy');
1212

1313
const shouldSkip = name => name === 'node_modules' || name === 'bin';
1414

15-
copyDir(join(__dirname, '../'), process.env.PWD, shouldSkip);
15+
copyDir(join(__dirname, '../'), process.cwd(), shouldSkip);
1616

1717
console.log('Webpack MPA Next is now setup! Run "npm i" or "yarn" to continue');

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webpack-mpa-next",
3-
"version": "3.7.0",
3+
"version": "3.7.1",
44
"description": "Multi page app setup with webpack",
55
"scripts": {
66
"build": "webpack --mode=production",

0 commit comments

Comments
 (0)