by @kodeazy
cp is not recognized as an internal or external command in windows
In Ubuntu below command works fine where as in windows it doesn’t work, because windows does not have cp
webpack cp src/index1.html dist/index1.html
In windows we have copy
it is used in place of cp
and instead of using forward slash /
we use two backwardslash \\
as shown below
webpack copy src\\index1.html dist\\index1.html