Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

407
Vistas
Exclude directory from webpack copy in vue CLI

I have a Vue3 project made with Vue CLI 5.0.1

My setup has a public folder where I have static assets that I need to serve, but it is very heavy (1GB of assets) so when I launch the npm run serve command I get the build stuck on [92%] sealing (asset processing copy-webpack-plugin).

I need so to exclude the public/resources directory from the copy-webpack-plugin.

I tried with the following config added in my vue.config.js:

    chainWebpack: (config) => {
    config.plugin("copy").tap(([options]) => {
      options[0].ignore.push("resources/**");
      return [options];
    });
 }

But I get this error:

ERROR TypeError: Cannot read property 'ignore' of undefined

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

This has been answered on Github.

The options format has changed so you need to modify your code as follows:

chainWebpack: (config) => {
  config.plugin("copy").tap(([options]) => {
    options.patterns[0].globOptions.ignore.push("resources/**");
    return [options];
  });
}
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda