Uses copy plugin, don't bundle @hediet/debug-visualizer-data-extraction.
This commit is contained in:
@@ -64,6 +64,8 @@
|
||||
"crypto-random-string": "^3.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"copy-webpack-plugin": "^5.1.1",
|
||||
"@types/copy-webpack-plugin": "^5.0.0",
|
||||
"@types/express": "^4.17.2",
|
||||
"@types/serve-static": "^1.13.3",
|
||||
"@types/node": "^13.7.1",
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import * as webpack from "webpack";
|
||||
import path = require("path");
|
||||
import { CleanWebpackPlugin } from "clean-webpack-plugin";
|
||||
import CopyPlugin = require("copy-webpack-plugin");
|
||||
|
||||
const r = (file: string) => path.resolve(__dirname, file);
|
||||
|
||||
@@ -16,6 +17,8 @@ module.exports = {
|
||||
devtool: "source-map",
|
||||
externals: {
|
||||
vscode: "commonjs vscode",
|
||||
"@hediet/debug-visualizer-data-extraction":
|
||||
"@hediet/debug-visualizer-data-extraction",
|
||||
},
|
||||
resolve: {
|
||||
extensions: [".ts", ".js"],
|
||||
@@ -36,5 +39,14 @@ module.exports = {
|
||||
node: {
|
||||
__dirname: false,
|
||||
},
|
||||
plugins: [new CleanWebpackPlugin()],
|
||||
plugins: [
|
||||
new CleanWebpackPlugin(),
|
||||
new CopyPlugin([
|
||||
{
|
||||
from: r("../data-extraction/"),
|
||||
to: r("./dist/data-extraction/"),
|
||||
ignore: ["**/node_modules/**/*"],
|
||||
},
|
||||
]),
|
||||
],
|
||||
} as webpack.Configuration;
|
||||
|
||||
Reference in New Issue
Block a user