Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upBuilding with webpack, @progress/kendo-* packages aren't bundled into vendor.(hash).js #803
Labels
Comments
|
If I get this right, You can use the minChunks function to put all external modules in the new webpack.optimize.CommonsChunkPlugin({
name: 'vendor', //minChunks: Infinity
minChunks: function (module) {
// this assumes your vendor imports exist in the node_modules directory
return module.context && module.context.indexOf("node_modules") !== -1;
}
})With that change, the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

I'm submitting a...
Current behavior
Webpack bundles
@progress/kendo-angular-dateinputscode intomain.hash.jsdespite being referenced in
vendor.tsExpected behavior
All vendor code should be bundled into
vendor.hash.jsMinimal reproduction of the problem with instructions
npm installnpm run build./dist/report.html, showing the source-maps of the output filesvendor.hash.jsandmain.hash.jsmain.hash.jsfile contains@telerikand@progressJS code, which shouldn't be there.What is the motivation or use case for changing the behavior?
Vendor code should end up in
vendor.hash.js, because that's the standard.Other modules (
@angular,rxjs,zone.js,reflect-metadata, etc.) are bundled correctly.Environment
Package versions:
@angular/...@4.3.3@progress/kendo-angular-dateinputs@1.0.5@progress/kendo-angular-intl@1.2.2@progress/kendo-angular-l10n@1.0.2@ngtools/webpack@1.5.5webpack@3.4.1Browser:
System: