Skip to content

Commit

Permalink
chore(deps): webpack ext reloader update
Browse files Browse the repository at this point in the history
  • Loading branch information
bartholomej committed Jan 28, 2023
1 parent deaf0f2 commit e4739d4
Show file tree
Hide file tree
Showing 4 changed files with 182 additions and 56 deletions.
2 changes: 1 addition & 1 deletion config/webpack.dev.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ExtensionReloader from '@bartholomej/webpack-extension-reloader';
import CopyPlugin from 'copy-webpack-plugin';
import * as webpack from 'webpack';
import ExtensionReloader from 'webpack-ext-reloader-mv3';
import { merge } from 'webpack-merge';
import { commonConfig } from './webpack.common';

Expand Down
4 changes: 2 additions & 2 deletions config/webpack.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default (options: WebpackOptions) => {
}
]
}),
new ZipPlugin({
new (ZipPlugin as any)({
// OPTIONAL: defaults to the Webpack output path (above)
// can be relative (to Webpack output path) or absolute
path: '../zip',
Expand All @@ -60,7 +60,7 @@ export default (options: WebpackOptions) => {

// OPTIONAL: defaults to the identity function
// a function mapping asset paths to new paths
pathMapper: (assetPath) => {
pathMapper: (assetPath: any) => {
// put all pngs in an `images` subdir
// if (assetPath.endsWith('.png'))
// return path.join(path.dirname(assetPath), 'images', path.basename(assetPath));
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"piratebay-scraper": "^4.0.0"
},
"devDependencies": {
"@bartholomej/webpack-extension-reloader": "^2.0.0-next.2",
"@types/chrome": "0.0.210",
"@types/copy-webpack-plugin": "^10.1.0",
"@types/mini-css-extract-plugin": "^2.5.1",
Expand All @@ -57,6 +56,7 @@
"typescript": "^4.9.4",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1",
"webpack-ext-reloader-mv3": "^2.1.1",
"webpack-merge": "^5.8.0",
"zip-webpack-plugin": "^4.0.1"
},
Expand Down
Loading

0 comments on commit e4739d4

Please sign in to comment.