webpack-isomorphic-tools
Advanced tools
Comparing version 0.8.6 to 0.8.7
@@ -168,5 +168,4 @@ 'use strict'; | ||
output: (0, _common.default_webpack_assets)(), | ||
regular_expressions: plugin.regular_expressions, | ||
log: plugin.log | ||
}); | ||
regular_expressions: plugin.regular_expressions | ||
}, plugin.log); | ||
}); | ||
@@ -173,0 +172,0 @@ }; |
@@ -28,5 +28,9 @@ 'use strict'; | ||
function write_assets(json, options) { | ||
var log = options.log; | ||
function write_assets(json, options, log) { | ||
// take the passed in options | ||
options = clone(options); | ||
// make webpack stats accessible for asset functions (parser, naming, filter) | ||
options.webpack_stats = json; | ||
log.debug('running write assets webpack plugin'); | ||
@@ -40,5 +44,2 @@ | ||
// // webpack stats | ||
// const json = stats.toJson() | ||
// create all the folders in the path if they don't exist | ||
@@ -189,3 +190,3 @@ _mkdirp2['default'].sync(_path2['default'].dirname(options.webpack_assets_path)); | ||
// determine and set the real file path for the asset | ||
set[name] = parser(module, options, log) || ''; | ||
set[name] = parser(module, options, log); // || '' | ||
// continue | ||
@@ -192,0 +193,0 @@ return set; |
{ | ||
"name": "webpack-isomorphic-tools", | ||
"version": "0.8.6", | ||
"version": "0.8.7", | ||
"description": "Transforms CSS-alike text into a React style JSON object", | ||
@@ -5,0 +5,0 @@ "main": "babel-transpiled-modules/index.js", |
@@ -384,3 +384,3 @@ # webpack-isomorphic-tools | ||
// regular_expressions{} for each asset type (by name), | ||
// logger) | ||
// webpack stats json object) | ||
// | ||
@@ -412,3 +412,3 @@ // log | ||
// regular_expressions{} for each asset type (by name), | ||
// logger) | ||
// webpack stats json object) | ||
// | ||
@@ -445,3 +445,3 @@ // log | ||
// regular_expressions{} for each asset type (by name), | ||
// logger) | ||
// webpack stats json object) | ||
// | ||
@@ -448,0 +448,0 @@ // log |
@@ -142,5 +142,5 @@ import path from 'path' | ||
output : default_webpack_assets(), | ||
regular_expressions : plugin.regular_expressions, | ||
log : plugin.log | ||
}) | ||
regular_expressions : plugin.regular_expressions | ||
}, | ||
plugin.log) | ||
}) | ||
@@ -147,0 +147,0 @@ } |
@@ -6,6 +6,10 @@ import fs from 'fs' | ||
// writes webpack-assets.json file, which contains assets' file paths | ||
export default function write_assets(json, options) | ||
export default function write_assets(json, options, log) | ||
{ | ||
const log = options.log | ||
// take the passed in options | ||
options = clone(options) | ||
// make webpack stats accessible for asset functions (parser, naming, filter) | ||
options.webpack_stats = json | ||
log.debug('running write assets webpack plugin') | ||
@@ -20,5 +24,2 @@ | ||
// // webpack stats | ||
// const json = stats.toJson() | ||
// create all the folders in the path if they don't exist | ||
@@ -161,3 +162,3 @@ mkdirp.sync(path.dirname(options.webpack_assets_path)) | ||
// determine and set the real file path for the asset | ||
set[name] = parser(module, options, log) || '' | ||
set[name] = parser(module, options, log) // || '' | ||
// continue | ||
@@ -164,0 +165,0 @@ return set |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
164421
2417