Bringing synaptic.min.js and webpack.config that is outputting 100% identical .js and .min.js files - just a dirty fix for CDNJS

that is related to https://github.com/cazala/synaptic/issues/137, we're using fn.toString() and bunch of regex-es to create a worker for now (I know, it's bad, still we already have a fix, but it is breaking some of our actually-interal, but overly-exposed APIs, so it goes to v2), and we need to either have one version minified by us or it will be minified by CDNs.
Esse commit está contido em:
Vsevolod Rodionov
2016-09-12 01:36:48 +03:00
commit 34c93cb718
3 arquivos alterados com 2877 adições e 35 exclusões
+24 -31
Ver Arquivo
@@ -91,21 +91,14 @@
/************************************************************************/ /************************************************************************/
/******/ ([ /******/ ([
/* 0 */ /* 0 */
/***/ function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(1);
/***/ },
/* 1 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var Synaptic = { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var Synaptic = {
Neuron: __webpack_require__(2), Neuron: __webpack_require__(1),
Layer: __webpack_require__(4), Layer: __webpack_require__(3),
Network: __webpack_require__(5), Network: __webpack_require__(4),
Trainer: __webpack_require__(6), Trainer: __webpack_require__(5),
Architect: __webpack_require__(7) Architect: __webpack_require__(6)
}; };
// CommonJS & AMD // CommonJS & AMD
@@ -136,7 +129,7 @@
/***/ }, /***/ },
/* 2 */ /* 1 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(module) {// export /* WEBPACK VAR INJECTION */(function(module) {// export
@@ -936,10 +929,10 @@
} }
})(); })();
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3)(module))) /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2)(module)))
/***/ }, /***/ },
/* 3 */ /* 2 */
/***/ function(module, exports) { /***/ function(module, exports) {
module.exports = function(module) { module.exports = function(module) {
@@ -955,15 +948,15 @@
/***/ }, /***/ },
/* 4 */ /* 3 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(module) {// export /* WEBPACK VAR INJECTION */(function(module) {// export
if (module) module.exports = Layer; if (module) module.exports = Layer;
// import // import
var Neuron = __webpack_require__(2) var Neuron = __webpack_require__(1)
, Network = __webpack_require__(5) , Network = __webpack_require__(4)
/******************************************************************************************* /*******************************************************************************************
LAYER LAYER
@@ -1235,19 +1228,19 @@
} }
})(); })();
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3)(module))) /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2)(module)))
/***/ }, /***/ },
/* 5 */ /* 4 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(module) {// export /* WEBPACK VAR INJECTION */(function(module) {// export
if (module) module.exports = Network; if (module) module.exports = Network;
// import // import
var Neuron = __webpack_require__(2) var Neuron = __webpack_require__(1)
, Layer = __webpack_require__(4) , Layer = __webpack_require__(3)
, Trainer = __webpack_require__(6) , Trainer = __webpack_require__(5)
/******************************************************************************************* /*******************************************************************************************
NETWORK NETWORK
@@ -1887,10 +1880,10 @@
return new Network(layers); return new Network(layers);
}; };
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3)(module))) /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2)(module)))
/***/ }, /***/ },
/* 6 */ /* 5 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(module) {// export /* WEBPACK VAR INJECTION */(function(module) {// export
@@ -2570,16 +2563,16 @@
} }
} }
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3)(module))) /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2)(module)))
/***/ }, /***/ },
/* 7 */ /* 6 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(module) {// import /* WEBPACK VAR INJECTION */(function(module) {// import
var Layer = __webpack_require__(4) var Layer = __webpack_require__(3)
, Network = __webpack_require__(5) , Network = __webpack_require__(4)
, Trainer = __webpack_require__(6) , Trainer = __webpack_require__(5)
/******************************************************************************************* /*******************************************************************************************
ARCHITECT ARCHITECT
@@ -2849,7 +2842,7 @@
// export // export
if (module) module.exports = Architect; if (module) module.exports = Architect;
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3)(module))) /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2)(module)))
/***/ } /***/ }
/******/ ]); /******/ ]);
+2848
Ver Arquivo
Diferenças do arquivo suprimidas por serem muito extensas Carregar Diff
+5 -4
Ver Arquivo
@@ -2,12 +2,13 @@ var webpack = require('webpack')
var license = require('./prebuild.js') var license = require('./prebuild.js')
module.exports = { module.exports = {
context: __dirname, context: __dirname,
entry: [ entry: {
'./src/synaptic.js' synaptic: './src/synaptic.js',
], 'synaptic.min': './src/synaptic.js'
},
output: { output: {
path: 'dist', path: 'dist',
filename: 'synaptic.js', filename: '[name].js',
}, },
plugins: [ plugins: [
new webpack.NoErrorsPlugin(), new webpack.NoErrorsPlugin(),