diff options
| author | Tim Keller <tjkeller.xyz> | 2025-05-23 14:30:44 -0500 |
|---|---|---|
| committer | Tim Keller <tjkeller.xyz> | 2025-05-23 14:30:44 -0500 |
| commit | 470883b4b836447692ac3ea5d2b4fc50cbdfecba (patch) | |
| tree | b9548fb32225b5733a7becbcc0eaa42b2770b88d /utils.js | |
| parent | e01a5e79337f31e656ed6d87c3cc168a06f0f27a (diff) | |
| download | material-svg-atlas-plugin-webpack-470883b4b836447692ac3ea5d2b4fc50cbdfecba.tar.xz material-svg-atlas-plugin-webpack-470883b4b836447692ac3ea5d2b4fc50cbdfecba.zip | |
create directories for file
Diffstat (limited to 'utils.js')
| -rw-r--r-- | utils.js | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -74,5 +74,8 @@ async function generateAtlasViewsFromReferences(refs, symbolId) { return generateAtlasViews(result.symbol.sprite.contents.toString(), symbolId) } +function createDirectoriesForFile(filePath) { + fs.mkdirSync(path.dirname(filePath), { recursive: true }) +} -module.exports = { generateAtlasViews, generateAtlasViewsFromReferences } +module.exports = { generateAtlasViews, generateAtlasViewsFromReferences, createDirectoriesForFile } |
