Skip to content

Commit 4abb25d

Browse files
committed
Fix issue with path being undefined on Windows
1 parent 0c1af62 commit 4abb25d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/cli.js

Lines changed: 1 addition & 1 deletion
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' || name === '.github';
1414

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

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webpack-mpa",
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)