mrbar42 / ignore-emit-webpack-plugin Goto Github PK
View Code? Open in Web Editor NEWPrevents ignored files from being emitted during a Webpack build
License: MIT License
Prevents ignored files from being emitted during a Webpack build
License: MIT License
If you work with js, and ts files and have to require
the plugin ts will find the ts file and will check the arguments against RegExp[]
but when used in a js file the argument is of type RegExp & unknown[]
/mnt/c/Users/luke/Local Sites/electrify/app/public/wp-content/plugins/cbc-blocks/blocks/testimonial/node_modules/ignore-emit-webpack-plugin/index.js:64
compilation.hooks.processAssets.tap({
TypeError: Cannot read property 'tap' of undefined
at /mnt/c/Users/luke/Local Sites/electrify/app/public/wp-content/plugins/cbc-blocks/blocks/testimonial/node_modules/ignore-emit-webpack-plugin/index.js:64:49
at SyncHook.eval [as call] (eval at create (/mnt/c/Users/luke/Local Sites/electrify/app/public/wp-content/plugins/cbc-blocks/blocks/testimonial/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:7:1)
at SyncHook.lazyCompileHook (/mnt/c/Users/luke/Local Sites/electrify/app/public/wp-content/plugins/cbc-blocks/blocks/testimonial/node_modules/tapable/lib/Hook.js:154:20)
at Compiler.newCompilation (/mnt/c/Users/luke/Local Sites/electrify/app/public/wp-content/plugins/cbc-blocks/blocks/testimonial/node_modules/webpack/lib/Compiler.js:631:26)
at /mnt/c/Users/luke/Local Sites/electrify/app/public/wp-content/plugins/cbc-blocks/blocks/testimonial/node_modules/webpack/lib/Compiler.js:667:29
at AsyncSeriesHook.eval [as callAsync] (eval at create (/mnt/c/Users/luke/Local Sites/electrify/app/public/wp-content/plugins/cbc-blocks/blocks/testimonial/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:4:1)
at AsyncSeriesHook.lazyCompileHook (/mnt/c/Users/luke/Local Sites/electrify/app/public/wp-content/plugins/cbc-blocks/blocks/testimonial/node_modules/tapable/lib/Hook.js:154:20)
at Compiler.compile (/mnt/c/Users/luke/Local Sites/electrify/app/public/wp-content/plugins/cbc-blocks/blocks/testimonial/node_modules/webpack/lib/Compiler.js:662:28)
at /mnt/c/Users/luke/Local Sites/electrify/app/public/wp-content/plugins/cbc-blocks/blocks/testimonial/node_modules/webpack/lib/Watching.js:77:18
at _next0 (eval at create (/mnt/c/Users/luke/Local Sites/electrify/app/public/wp-content/plugins/cbc-blocks/blocks/testimonial/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:14:1)
at eval (eval at create (/mnt/c/Users/luke/Local Sites/electrify/app/public/wp-content/plugins/cbc-blocks/blocks/testimonial/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:22:1)
at LiveReloadPlugin.serverStarted (/mnt/c/Users/luke/Local Sites/electrify/app/public/wp-content/plugins/cbc-blocks/blocks/testimonial/node_modules/webpack-livereload-plugin/index.js:89:9)
TypeError: Cannot read property 'emit' of undefined
at IgnoreEmitPlugin.apply (/home/roman/Projects/fox.lo/client/node_modules/ignore-emit-webpack-plugin/ignore-emit-webpack-plugin.js:40:20)
at Compiler.apply (/home/roman/Projects/fox.lo/client/node_modules/tapable/lib/Tapable.js:375:16)
at webpack (/home/roman/Projects/fox.lo/client/node_modules/webpack/lib/webpack.js:33:19)
at processOptions (/home/roman/Projects/fox.lo/client/node_modules/webpack/bin/webpack.js:335:15)
at yargs.parse (/home/roman/Projects/fox.lo/client/node_modules/webpack/bin/webpack.js:397:2)
at Object.Yargs.self.parse (/home/roman/Projects/fox.lo/client/node_modules/yargs/yargs.js:533:18)
at Object.<anonymous> (/home/roman/Projects/fox.lo/client/node_modules/webpack/bin/webpack.js:152:7)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)
at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
at Function.Module._load (internal/modules/cjs/loader.js:543:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:744:10)
at startup (internal/bootstrap/node.js:240:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:564:3)
(node:36648) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
at IgnoreEmitPlugin.apply (/Users/niksajanjic/Projects/MR2/pdf-service/templates/refactored_reports/node_modules/ignore-emit-webpack-plugin/ignore-emit-webpack-plugin.js:40:14)
at webpack (/Users/niksajanjic/Projects/MR2/pdf-service/templates/refactored_reports/node_modules/webpack/lib/webpack.js:37:12)
at options.map.options (/Users/niksajanjic/Projects/MR2/pdf-service/templates/refactored_reports/node_modules/webpack/lib/webpack.js:28:55)
at Array.map (<anonymous>)
at webpack (/Users/niksajanjic/Projects/MR2/pdf-service/templates/refactored_reports/node_modules/webpack/lib/webpack.js:28:40)
at processOptions (/Users/niksajanjic/Projects/MR2/pdf-service/templates/refactored_reports/node_modules/webpack-cli/bin/cli.js:441:16)
at yargs.parse (/Users/niksajanjic/Projects/MR2/pdf-service/templates/refactored_reports/node_modules/webpack-cli/bin/cli.js:528:3)
at Object.parse (/Users/niksajanjic/Projects/MR2/pdf-service/templates/refactored_reports/node_modules/yargs/yargs.js:552:18)
at /Users/niksajanjic/Projects/MR2/pdf-service/templates/refactored_reports/node_modules/webpack-cli/bin/cli.js:219:8
at Object.<anonymous> (/Users/niksajanjic/Projects/MR2/pdf-service/templates/refactored_reports/node_modules/webpack-cli/bin/cli.js:530:3)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/Users/niksajanjic/Projects/MR2/pdf-service/templates/refactored_reports/node_modules/webpack/bin/webpack.js:157:2)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
The ignored JS files are not compiled, but are injected inside html template.
It's possible to avoid this?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.