nickjj / manifest-revision-webpack-plugin

Write out a manifest file containing your versioned webpack chunks and assets.
ISC License
124 stars 40 forks source link

Add prefetch option and default to false #43

Open lankster opened 6 years ago

lankster commented 6 years ago

Prefetching all assets causes problems for projects that are being gradually migrated to webpack. Users may want the ability to push webpack to production bits at a time for easier code review and to minimize the impact of any errors. Unconverted files may live in directories with other files that are being included in the compilation process, and if prefetching is enabled, they will throw errors as the compiler parses them.

Making the prefetching an opt-in option allows for a default of parsing only the entry files and their dependencies, rather than all files in any included directories.