Skip to content

Commit

Permalink
chore(monorepo): unify copy-webpack-plugin default import naming
Browse files Browse the repository at this point in the history
  • Loading branch information
mroz22 committed Feb 11, 2025
1 parent 94c0a9c commit a52342a
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const CopyPlugin = require('copy-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const path = require('path');
const { WebpackPluginServe } = require('webpack-plugin-serve');
Expand Down Expand Up @@ -28,7 +28,7 @@ module.exports = {
],
},
plugins: [
new CopyPlugin({
new CopyWebpackPlugin({
patterns: [
{
from: path.join(__dirname, '..', '..', '..', 'connect-iframe', 'build'),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const CopyPlugin = require('copy-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const path = require('path');

Expand All @@ -25,7 +25,7 @@ module.exports = {
modules: ['node_modules'],
},
plugins: [
new CopyPlugin({
new CopyWebpackPlugin({
patterns: [
{
from: path.join(__dirname, '..', '..', '..', 'connect-iframe', 'build'),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import CopyPlugin from 'copy-webpack-plugin';
import CopyWebpackPlugin from 'copy-webpack-plugin';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import path from 'path';
import webpack from 'webpack';
Expand Down Expand Up @@ -111,7 +111,7 @@ const config: webpack.Configuration = {
inject: true,
minify: false,
}),
new CopyPlugin({
new CopyWebpackPlugin({
patterns: [
{
from: path.join(__dirname, '..', 'src-webextension', 'manifest.json'),
Expand Down
4 changes: 2 additions & 2 deletions packages/connect-popup/webpack/prod.webpack.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { execSync } from 'child_process';
import CopyPlugin from 'copy-webpack-plugin';
import CopyWebpackPlugin from 'copy-webpack-plugin';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import path from 'path';
import TerserPlugin from 'terser-webpack-plugin';
Expand Down Expand Up @@ -107,7 +107,7 @@ const config: webpack.Configuration = {
minify: false,
urls: URLS,
}),
new CopyPlugin({
new CopyWebpackPlugin({
patterns: [
{
from: `${STATIC_SRC}/popup.css`,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import CopyPlugin from 'copy-webpack-plugin';
import CopyWebpackPlugin from 'copy-webpack-plugin';
import path from 'path';
import webpack from 'webpack';

Expand Down Expand Up @@ -30,7 +30,7 @@ const config: webpack.Configuration = {
module: prod.module,
resolve: prod.resolve,
plugins: [
new CopyPlugin({
new CopyWebpackPlugin({
patterns: [
{
from: `${path.join(__dirname, '..', 'dist', 'content-script.js')}`,
Expand Down
4 changes: 2 additions & 2 deletions packages/suite-build/configs/desktop.webpack.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import CopyPlugin from 'copy-webpack-plugin';
import CopyWebpackPlugin from 'copy-webpack-plugin';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import path from 'path';
import webpack from 'webpack';
Expand All @@ -25,7 +25,7 @@ const config: webpack.Configuration = {
path: path.join(baseDir, 'build'),
},
plugins: [
new CopyPlugin({
new CopyWebpackPlugin({
patterns: ['bin', 'fonts', 'images', 'videos', 'guide/assets']
.map(dir => ({
from: path.join(__dirname, '..', '..', 'suite-data', 'files', dir),
Expand Down
4 changes: 2 additions & 2 deletions packages/suite-build/configs/web.webpack.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import CopyPlugin from 'copy-webpack-plugin';
import CopyWebpackPlugin from 'copy-webpack-plugin';
import CssMinimizerPlugin from 'css-minimizer-webpack-plugin';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import path from 'path';
Expand All @@ -17,7 +17,7 @@ const config: webpack.Configuration = {
path: path.join(baseDir, 'build'),
},
plugins: [
new CopyPlugin({
new CopyWebpackPlugin({
patterns: ['browser-detection', 'fonts', 'images', 'oauth', 'videos', 'guide/assets']
.map(dir => ({
from: path.join(__dirname, '..', '..', 'suite-data', 'files', dir),
Expand Down

0 comments on commit a52342a

Please sign in to comment.