Questions tagged [copy-webpack-plugin]

25 questions
0
votes
0 answers

NextJS: ValidationError: Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema

I'm running a nextJS Project with 'yarn dev' and the following error is shown: `ValidationError: Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.` - options.patterns should be a…
0
votes
1 answer

How to change file reference strings to use generated hashes from copy file webpack plugin

I'm copying all my assets to my build directory using copy webpack plugin. It generates all the files with the hashes properly but is there a simple way of changing any of these file references in code with the new hashed filename? new…
Derek Lawrence
  • 1,551
  • 2
  • 16
  • 36
0
votes
1 answer

Webpack CopyPlugin add nested directories and files

What is the pattern for adding all nested directories and files of said nested directories in Webpack CopyPlugin? directory -- subdirectory-1 ---- file-1.ext -- subdirectory-2 ---- file-2.ext desired build output lib -- directory ----…
Jake Metz
  • 65
  • 9
0
votes
1 answer

copy webpack plugin error options has an unknown property 'to'

I am having issues with the Copy Webpack plugin. I have checked the documentation (https://webpack.js.org/plugins/copy-webpack-plugin/) and seems like I am using the correct config, still I am getting the error: ValidationError: Invalid options…
Jan Peeter
  • 347
  • 3
  • 12
0
votes
1 answer

Webpack cache copied files

I'm using webpack and webpack-dev-server to test changes to a React application but I have a large number of prebuilt resources (JS/CSS/etc). To make these available to the rest of the application I am using copy-webpack-plugin and copying them into…
Mogarrr
  • 373
  • 3
  • 11
0
votes
2 answers

CopyWebpack : Error while trying to copy files from node_modules to my public

Context First I did a lot of research, but I did not succeed. I am using django as backend, and to manage my frontend dependencies I am using webpack (starter) which I modified to fit my needs. Here is a part of my structure for the npm / webpack…
Devart
  • 320
  • 4
  • 18
0
votes
1 answer

Why are copied files different when running Webpack in development and production modes

I have a javascript file that isn't part of my project but that needs to be bundled up with it when it is served. This file has contents basically in the form... FT.manifest({ "foo": "bar", "id": 3 }) ...where the Object part is well formed…
popClingwrap
  • 3,919
  • 5
  • 26
  • 44
0
votes
0 answers

React build taking too long to complete with message "95% emitting CopyPlugin" - How to debug npm build?

Build taking too long to complete in my local system. It showing the message "95% emitting CopyPlugin" when I run "npm start" and waits for 7 or 8 hours to complete, even same thing happens when I make code changes if code change is one line or a…
0
votes
1 answer

How to export sass files to dist folder preserving folder structure?

I'm trying to take all the sass files in a particular folder, and copy/transform them into css files in a different folder, preserving the folder structure. …
Phil
  • 1,852
  • 2
  • 28
  • 55
-1
votes
1 answer

Upgrading webpack dependency

I've upgraded dependencies in my application. In particular webpack from 4.43 to 5.88, related dependencies are also updated: Now, I see this error during yarn build. YN0000: [..]: Process started ➤ YN0000: [..]: Process started ➤…
Unnamed
  • 111
  • 8
1
2