Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uglify the individual sort files #129

Merged
merged 1 commit into from May 6, 2017
Merged

Conversation

decklin
Copy link
Contributor

@decklin decklin commented May 5, 2017

I wanted to try this library out and was confused by the fact that there's a production (i.e. minified) file for the main code, but not for files in sorts I wanted to add along with it. This PR includes them in what is built by Grunt.

Since this is now a tree of many files, tablesort.min.js goes in dist (which is laid out like src) instead of the top level. The only thing I see that references tablesort.min.js directly is the demo page, so that path has been updated.

I'm not sure if you'd rather drop Grunt altogether (#122 ... obviously this now leans on Grunt for a bit more portable functionality, making that harder) or if the answer for someone for my case is "know how to construct your own build pipeline that gloms the minified scripts together" (I was able to do that manually, but I barely know what I'm doing here), but it seems like it'd be simpler for new users to be able to just copy a couple production-ready files.

@tristen
Copy link
Owner

tristen commented May 6, 2017

The reasoning makes sense to me!

@tristen tristen merged commit 8ff6281 into tristen:gh-pages May 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants