auto-tile-webpack-plugin
Advanced tools
Comparing version 0.9.0 to 0.9.1
{ | ||
"name": "auto-tile-webpack-plugin", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"description": "Generate autotiles for Tiled automatically", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -17,6 +17,4 @@ const path = require('path') | ||
const files = fs.readdirSync(this.inputDir).filter(file => file.endsWith('.png')) | ||
const promises = files.map(file => this.convert(file)) | ||
Promise.all(promises).then(() => { | ||
if (compiler.options.mode === 'development') this.watch() | ||
}) | ||
files.forEach(file => this.convert(file)) | ||
if (compiler.options.mode === 'development') this.watch() | ||
}) | ||
@@ -23,0 +21,0 @@ } |
891619
143