diff --git a/package.json b/package.json index 46b6c9f..a4a19f9 100644 --- a/package.json +++ b/package.json @@ -808,7 +808,7 @@ "pretest": "npm run compile-tests && npm run compile && npm run lint", "lint": "eslint src --ext ts", "test": "mocha", - "build": "webpack --config webpack.config.js && yarn build:gui", + "build": "webpack --config webpack.config.js && cd ./gui && yarn && yarn vscode", "dev": "webpack serve --config webpack.config.js --open", "idea": "webpack --config webpack.idea.config.js && mv dist/main.js dist/main.html ../devchat-intellij/src/main/resources/static && echo '🎆done'" }, diff --git a/tsconfig.json b/tsconfig.json index 53ba033..05fbf46 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -21,6 +21,6 @@ } }, "exclude": [ - "test" + "test","gui" ] } \ No newline at end of file diff --git a/webpack.config.js b/webpack.config.js index d2d1b9d..4cb6432 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -6,6 +6,7 @@ const path = require("path"); const HtmlWebpackPlugin = require("html-webpack-plugin"); const { DefinePlugin } = require("webpack"); const CopyWebpackPlugin = require("copy-webpack-plugin"); +const { CleanWebpackPlugin } = require("clean-webpack-plugin"); //@ts-check /** @typedef {import('webpack').Configuration} WebpackConfig **/ @@ -59,7 +60,9 @@ const extensionConfig = { infrastructureLogging: { level: "log", // enables logging required for problem matchers }, - plugins: [], + plugins: [ + new CleanWebpackPlugin() + ], }; /** @type WebpackConfig */ @@ -171,4 +174,4 @@ const webviewConfig = { ], }; -module.exports = [extensionConfig, webviewConfig]; +module.exports = extensionConfig; diff --git a/yarn.lock b/yarn.lock index 9837584..eee6742 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7945,6 +7945,11 @@ toidentifier@1.0.1: resolved "https://registry.yarnpkg.com/traverse/-/traverse-0.3.9.tgz#717b8f220cc0bb7b44e40514c22b2e8bbc70d8b9" integrity sha512-iawgk0hLP3SxGKDfnDJf8wTz4p2qImnyihM5Hh/sGvQ3K37dPi/w8sRhdNIxYA1TwFwc5mDhIJq+O0RsvXBKdQ== +tree-kill@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.2.tgz#4ca09a9092c88b73a7cdc5e8a01b507b0790a0cc" + integrity sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A== + trim-lines@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/trim-lines/-/trim-lines-3.0.1.tgz#d802e332a07df861c48802c04321017b1bd87338"