Problems with Download, ZIP file contains huge datatables.js: 3.8MB,

Problems with Download, ZIP file contains huge datatables.js: 3.8MB,

cskwgcskwg Posts: 4Questions: 2Answers: 0

The downloaded ZIP file contains code like the one below, It seems to be packed somehow.
In this form, it is not usable for me. How can I download clean JS and CSS files?

Kind regards

/*
* This combined file was created by the DataTables downloader builder:
* https://datatables.net/download
*
* To rebuild or modify this file with the latest versions of the included
* software please visit:
* https://datatables.net/download/#dt/jszip-2.5.0/pdfmake-0.1.36/dt-1.10.18/af-2.3.3/b-1.5.6/b-colvis-1.5.6/b-flash-1.5.6/b-html5-1.5.6/b-print-1.5.6/kt-2.5.0/rr-1.2.4/sc-2.0.0/sl-1.3.0
*
* Included libraries:
* JSZip 2.5.0, pdfmake 0.1.36, DataTables 1.10.18, AutoFill 2.3.3, Buttons 1.5.6, Column visibility 1.5.6, Flash export 1.5.6, HTML5 export 1.5.6, Print view 1.5.6, KeyTable 2.5.0, RowReorder 1.2.4, Scroller 2.0.0, Select 1.3.0
*/

/*!

JSZip - A Javascript class for generating and reading zip files
http://stuartk.com/jszip

(c) 2009-2014 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown.

JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/master/LICENSE
*/
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.JSZip=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
'use strict';
// private property
var _keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";

Answers

  • kthorngrenkthorngren Posts: 20,309Questions: 26Answers: 4,770

    In the downloaded directory there should be individual directories for Datatables and the extensions you downloaded. In each directory there should be js and cssdirectory containing the individual files. Do you not have these individual directories?

    Kevin

This discussion has been closed.