🗜 minify CDN bundle
This commit is contained in:
parent
2f602f791d
commit
6424b50082
7 changed files with 14 additions and 7 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
|||
lib/
|
||||
node_modules/
|
||||
coverage/
|
||||
npm-debug.log
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ const {version, name} = require(rt+'/package.json');
|
|||
const shell = require('child_process').execSync;
|
||||
const cmds ={
|
||||
browserify:(suffix =>`node ${rt}/node_modules/browserify/bin/cmd ${rt}/cdn/window.js -o ${rt}/cdn/${name}-${suffix}.js`) ,
|
||||
// minify : (suffix => `node node_modules/uglify-js/bin/uglifyjs ${rt}/cdn/${name}-${suffix}.js -o ${rt}/cdn/${name}-${suffix}.min.js`)
|
||||
minify : (suffix => `node ${rt}/node_modules/uglify-js/bin/uglifyjs ${rt}/cdn/${name}-${suffix}.js -o ${rt}/cdn/${name}-${suffix}.min.js`)
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
(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);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.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(require,module,exports){
|
||||
const {CSVLink, CSVDownload} = require('../lib/index');
|
||||
const ReactCSV = require('../lib/index');
|
||||
|
||||
window.ReactCSV = {CSVLink, CSVDownload};
|
||||
window.ReactCSV = {CSVLink : ReactCSV.CSVLink, CSVDownload: ReactCSV.CSVDownload};
|
||||
|
||||
},{"../lib/index":5}],2:[function(require,module,exports){
|
||||
'use strict';
|
||||
|
|
|
|||
3
cdn/react-csv-1.0.1.min.js
vendored
Normal file
3
cdn/react-csv-1.0.1.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
4
cdn/react-csv-latest.js
vendored
4
cdn/react-csv-latest.js
vendored
|
|
@ -1,7 +1,7 @@
|
|||
(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);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.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(require,module,exports){
|
||||
const {CSVLink, CSVDownload} = require('../lib/index');
|
||||
const ReactCSV = require('../lib/index');
|
||||
|
||||
window.ReactCSV = {CSVLink, CSVDownload};
|
||||
window.ReactCSV = {CSVLink : ReactCSV.CSVLink, CSVDownload: ReactCSV.CSVDownload};
|
||||
|
||||
},{"../lib/index":5}],2:[function(require,module,exports){
|
||||
'use strict';
|
||||
|
|
|
|||
3
cdn/react-csv-latest.min.js
vendored
Normal file
3
cdn/react-csv-latest.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -1,3 +1,3 @@
|
|||
const {CSVLink, CSVDownload} = require('../lib/index');
|
||||
const ReactCSV = require('../lib/index');
|
||||
|
||||
window.ReactCSV = {CSVLink, CSVDownload};
|
||||
window.ReactCSV = {CSVLink : ReactCSV.CSVLink, CSVDownload: ReactCSV.CSVDownload};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue