Skip to content

Commit 6ded4c9

Browse files
authored
Fix issue with webpack and path to static. (#86)
Bump version to 0.3.2
1 parent 6bbed81 commit 6ded4c9

File tree

5 files changed

+17
-5
lines changed

5 files changed

+17
-5
lines changed

.vscode/launch.json

+11-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,21 @@
66
"version": "0.2.0",
77
"configurations": [
88
{
9-
"name": "Run Extension",
9+
"name": "Run Extension Webpack",
1010
"type": "extensionHost",
1111
"request": "launch",
1212
"runtimeExecutable": "${execPath}",
1313
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
1414
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
15+
"preLaunchTask": "npm: webpack"
16+
},
17+
{
18+
"name": "Run Extension",
19+
"type": "extensionHost",
20+
"request": "launch",
21+
"runtimeExecutable": "${execPath}",
22+
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
23+
"outFiles": ["${workspaceFolder}/out/**/*.js"],
1524
"preLaunchTask": "${defaultBuildTask}"
1625
},
1726
{
@@ -24,7 +33,7 @@
2433
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
2534
],
2635
"outFiles": ["${workspaceFolder}/out/test/**/*.js"],
27-
"preLaunchTask": "npm: test-compile"
36+
"preLaunchTask": "${defaultBuildTask}"
2837
}
2938
]
3039
}

.vscode/tasks.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
}
1818
}
1919
]
20-
}
20+
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Competitive Programming made simple",
55
"icon": "images/logo.png",
66
"publisher": "marx24",
7-
"version": "0.3.0",
7+
"version": "0.3.2",
88
"license": "MIT",
99
"keywords": [
1010
"acm",

src/core.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { copySync } from "fs-extra";
4242
* Path to static folder.
4343
*/
4444
export function pathToStatic() {
45-
return join(dirname(dirname(__filename)), "static");
45+
return join(dirname(__dirname), "static");
4646
}
4747

4848
/**

webpack.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,8 @@ const config = {
3535
},
3636
],
3737
},
38+
node: {
39+
__dirname: false,
40+
},
3841
};
3942
module.exports = config;

0 commit comments

Comments
 (0)