From 5ce67fd9a6d8e9534aaddadfdf006f5165b87838 Mon Sep 17 00:00:00 2001 From: Terry Sansom <77757273+TerrySansom@users.noreply.github.com> Date: Thu, 8 Dec 2022 11:50:40 -0700 Subject: [PATCH 1/2] Update webpack.md Syntax Error CopyWebpackPlugin was CopyWebpack --- website/docs/configuration/webpack.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/configuration/webpack.md b/website/docs/configuration/webpack.md index a161c7d..7efbed7 100644 --- a/website/docs/configuration/webpack.md +++ b/website/docs/configuration/webpack.md @@ -46,7 +46,7 @@ An array of Webpack plugins to add: https://webpack.js.org/plugins/ You can specify whether or not each plugin is appended or prepended to the existing list of Webpack plugins. If not specified, the default is to prepend. Check out the following example: ```js title="craco.config.js" -const CopyPlugin = require('copy-webpack-plugin'); +const CopyWebpackPlugin = require('copy-webpack-plugin'); const ESLintPlugin = require('eslint-webpack-plugin'); const HtmlPlugin = require('html-webpack-plugin'); From 752b5afc9275af2b7988d866b8991d50f7e89f70 Mon Sep 17 00:00:00 2001 From: Dilan Nair Date: Thu, 8 Dec 2022 15:22:17 -0600 Subject: [PATCH 2/2] Update webpack.md --- website/docs/configuration/webpack.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/configuration/webpack.md b/website/docs/configuration/webpack.md index 7efbed7..080c0b7 100644 --- a/website/docs/configuration/webpack.md +++ b/website/docs/configuration/webpack.md @@ -46,7 +46,7 @@ An array of Webpack plugins to add: https://webpack.js.org/plugins/ You can specify whether or not each plugin is appended or prepended to the existing list of Webpack plugins. If not specified, the default is to prepend. Check out the following example: ```js title="craco.config.js" -const CopyWebpackPlugin = require('copy-webpack-plugin'); +const CopyPlugin = require('copy-webpack-plugin'); const ESLintPlugin = require('eslint-webpack-plugin'); const HtmlPlugin = require('html-webpack-plugin'); @@ -54,7 +54,7 @@ module.exports = { webpack: { plugins: { add: [ - new CopyWebpackPlugin() /* this plugin will be prepended */, + new CopyPlugin() /* this plugin will be prepended */, [new ESLintPlugin(), 'prepend'] /* this one, too */, [new HtmlPlugin(), 'append'] /* not this one though */, ],