aaronlord / laroute

Generate Laravel route URLs from JavaScript.
MIT License
796 stars 138 forks source link

Add 'exclude' feature #75

Open GregPeden opened 7 years ago

GregPeden commented 7 years ago

This adds an option to 'exclude' properties from the generated route package, by type.

Adds a new config option 'except', which accepts an array of properties to be excluded from the compiled bundle. This approach maintains non-breaking support with current implementations.

This is inspired by a previous PR (https://github.com/aaronlord/laroute/pull/59) which was allowed to expire without adoption but is very useful. This reduces the bundle size by a lot if used properly. I urge that this should be considered. Thanks.