Skip to content

Commit 686811b

Browse files
committed
update rollup.js: disable rollup when hexo new
1 parent 6da5224 commit 686811b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

includes/tasks/rollup.js

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const cp = require('child_process');
22

33
/** @param {import("hexo")} hexo */
44
module.exports = function (hexo) {
5+
if (hexo.env?.cmd?.startsWith('n')) { return; }
56
hexo.log.info('building js');
67
cp.execSync('yarn build', { cwd: './themes/Anatolo', stdio: 'inherit' });
78
hexo.log.info('build successful!');

0 commit comments

Comments
 (0)