{"id":19418,"library":"copy-globs-webpack-plugin","title":"copy-globs-webpack-plugin","description":"Webpack plugin (v0.3.0) to copy static files using glob patterns. Offers a simpler API than copy-webpack-plugin by accepting glob patterns directly. Stable legacy version with no active development. Suitable for basic static file copying in webpack 4 projects; newer alternatives like copy-webpack-plugin have broader support and active maintenance.","status":"abandoned","version":"0.3.0","language":"javascript","source_language":"en","source_url":"https://github.com/qwp6t/copy-globs-webpack-plugin","tags":["javascript"],"install":[{"cmd":"npm install copy-globs-webpack-plugin","lang":"bash","label":"npm"},{"cmd":"yarn add copy-globs-webpack-plugin","lang":"bash","label":"yarn"},{"cmd":"pnpm add copy-globs-webpack-plugin","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package does not support ESM; use CommonJS require.","wrong":"import CopyGlobsPlugin from 'copy-globs-webpack-plugin';","symbol":"CopyGlobsPlugin","correct":"const CopyGlobsPlugin = require('copy-globs-webpack-plugin');"},{"note":"The plugin is exported as a single constructor; no named exports.","symbol":"default","correct":"const CopyGlobsPlugin = require('copy-globs-webpack-plugin');"},{"note":"Destructuring fails; use default require.","wrong":"const { CopyGlobsPlugin } = require('copy-globs-webpack-plugin');","symbol":"type","correct":"const CopyGlobsPlugin = require('copy-globs-webpack-plugin');"}],"quickstart":{"code":"const CopyGlobsPlugin = require('copy-globs-webpack-plugin');\n\nmodule.exports = {\n  plugins: [\n    new CopyGlobsPlugin({\n      patterns: ['src/static/**/*', 'public/*.ico'],\n      output: 'dist/'\n    })\n  ]\n};","lang":"javascript","description":"Shows how to use the plugin in webpack config to copy files matching glob patterns to an output directory."},"warnings":[{"fix":"Use copy-webpack-plugin or implement custom filtering with glob streams.","message":"Plugin uses glob patterns but does not support options like ignore or dot.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Verify patterns manually or switch to copy-webpack-plugin with error handling.","message":"No error or warning if pattern matches zero files; output directory may be empty.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Migrate to copy-webpack-plugin or webpack 5's built-in asset modules.","message":"Package has not been updated since 2017 and is considered abandoned.","severity":"deprecated","affected_versions":">=0.1.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run 'npm install copy-globs-webpack-plugin@0.3.0' or check package.json.","cause":"Package not installed or misspelled.","error":"Cannot find module 'copy-globs-webpack-plugin'"},{"fix":"Use 'const CopyGlobsPlugin = require(\"copy-globs-webpack-plugin\");'.","cause":"ES6 import used instead of CommonJS require.","error":"TypeError: CopyGlobsPlugin is not a constructor"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}