Skip to content

Commit

Permalink
Try with copy-webpack-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
neocrao committed May 28, 2024
1 parent 311d5e6 commit bce90da
Show file tree
Hide file tree
Showing 5 changed files with 282 additions and 40 deletions.
Binary file added img/error5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
233 changes: 197 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"@vercel/webpack-asset-relocator-loader": "1.7.3",
"copy-webpack-plugin": "^12.0.2",
"css-loader": "^6.0.0",
"electron": "30.0.8",
"eslint": "^8.0.1",
Expand Down
9 changes: 9 additions & 0 deletions webpack.plugins.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type IForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
const CopyPlugin = require("copy-webpack-plugin");

// eslint-disable-next-line @typescript-eslint/no-var-requires
const ForkTsCheckerWebpackPlugin: typeof IForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
Expand All @@ -7,4 +8,12 @@ export const plugins = [
new ForkTsCheckerWebpackPlugin({
logger: 'webpack-infrastructure',
}),
new CopyPlugin({
patterns: [
{
from: "./node_modules/sharp/",
to: "./output/node_modules/sharp/", // still under node_modules directory so it could find this module
},
],
}),
];
Loading

0 comments on commit bce90da

Please sign in to comment.