feat: update build
This commit is contained in:
parent
9ab96c898d
commit
bae26dbea9
@ -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'"
|
||||
},
|
||||
|
@ -21,6 +21,6 @@
|
||||
}
|
||||
},
|
||||
"exclude": [
|
||||
"test"
|
||||
"test","gui"
|
||||
]
|
||||
}
|
@ -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;
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user