diff --git a/lib/utils/create_app.js b/lib/utils/create_app.js index 7b6a272..d808623 100644 --- a/lib/utils/create_app.js +++ b/lib/utils/create_app.js @@ -29,8 +29,7 @@ module.exports = function create_app(src, dest, routes, options) { fs.writeFileSync(file, main); // need to fudge the mtime, because webpack is soft in the head - const stats = fs.statSync(file); - const { atime, mtime } = statSync(file); + const { atime, mtime } = fs.statSync(file); fs.utimesSync(file, atime.getTime() - 999999, mtime.getTime() - 999999); }