Skip to content

Commit

Permalink
build(webpack): Fixed out directory to include src subfolder
Browse files Browse the repository at this point in the history
  • Loading branch information
Aerex authored May 19, 2022
2 parents ee2688b + 6d245b4 commit 9876dae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,9 @@
},
"scripts": {
"vscode:prepublish": "npm run build",
"build:dev": "webpack --mode development",
"build": "webpack --mode production --devtool hidden-source-map",
"build:dev": "npm run clean && webpack --mode development",
"build": "npm run clean && webpack --mode production --devtool hidden-source-map",
"clean": "rm -rf out",
"compile": "tsc -p ./",
"watch": "webpack --mode development --watch",
"pretest": "npm run compile",
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const config = {
entry: './src/extension.ts', // the entry point of this extension, 📖 -> https://webpack.js.org/configuration/entry-context/
output: {
// the bundle is stored in the 'dist' folder (check package.json), 📖 -> https://webpack.js.org/configuration/output/
path: path.resolve(__dirname, 'out'),
path: path.resolve(__dirname, 'out', 'src'),
filename: 'extension.js',
libraryTarget: 'commonjs2',
devtoolModuleFilenameTemplate: '../[resource-path]'
Expand Down

0 comments on commit 9876dae

Please sign in to comment.