webpack-isomorphic-tools
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -20,2 +20,6 @@ 'use strict'; | ||
var _mkdirp = require('mkdirp'); | ||
var _mkdirp2 = _interopRequireDefault(_mkdirp); | ||
// writes webpack-stats.json file, which contains assets' file paths | ||
@@ -128,4 +132,9 @@ | ||
// for debugging purposes | ||
// console.log(JSON.stringify(output, null, 2)) | ||
// create all the folders in the path if they don't exist | ||
_mkdirp2['default'].sync(_path2['default'].dirname(options.output)); | ||
// write webpack stats file | ||
_fs2['default'].writeFileSync(options.output, JSON.stringify(output)); | ||
@@ -132,0 +141,0 @@ } |
{ | ||
"name": "webpack-isomorphic-tools", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Transforms CSS-alike text into a React style JSON object", | ||
@@ -8,3 +8,4 @@ "main": "babel-transpiled-modules/index.js", | ||
"babel-runtime": "^5.6.20", | ||
"colors": "^1.1.2" | ||
"colors": "^1.1.2", | ||
"mkdirp": "^0.5.1" | ||
}, | ||
@@ -11,0 +12,0 @@ "devDependencies": { |
@@ -1,3 +0,4 @@ | ||
import fs from 'fs' | ||
import path from 'path' | ||
import fs from 'fs' | ||
import path from 'path' | ||
import mkdirp from 'mkdirp' | ||
@@ -112,5 +113,10 @@ // writes webpack-stats.json file, which contains assets' file paths | ||
// for debugging purposes | ||
// console.log(JSON.stringify(output, null, 2)) | ||
// create all the folders in the path if they don't exist | ||
mkdirp.sync(path.dirname(options.output)) | ||
// write webpack stats file | ||
fs.writeFileSync(options.output, JSON.stringify(output)) | ||
} |
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
91662
3
25
1453
+ Addedmkdirp@^0.5.1
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)