diff --git a/build.js b/build.js index 720e18d5..251bbc6d 100644 --- a/build.js +++ b/build.js @@ -307,8 +307,9 @@ if (args.bundle && typeof bundle === 'object') { } } if (js.length) { - var uglify = require("uglify-js"); - uglyjs = uglify.minify(js); + const uglify = require("uglify-js"); + const path = require('path'); + uglyjs = uglify.minify(js.map(_path => JSON.stringify(path.normalize(_path)))); uglyjs.error ? console.log(uglyjs.error) : ( jshash = 'bundled_' + crypto.createHash('md5').update(uglyjs.code).digest("hex"), fs.writeFileSync('./serve/static/' + jshash + '.min.js', uglyjs.code)