diff --git a/bin/index.js b/bin/index.js index 6c9c079..35530f9 100644 --- a/bin/index.js +++ b/bin/index.js @@ -4,6 +4,8 @@ const zlib = require('zlib'); const { minify } = require('terser'); const pkg = require('../package.json'); +if (!fs.existsSync('dist')) fs.mkdirSync('dist'); + /** * @param {string} file * @param {string} source