sync-update

1.0.4 • Public • Published

install

npm i sync-update

use

index.js

const path = require('path');
const {syncUpdate} = require('sync-uodate');
const src = path.resolve(__dirname, './src');
const dist = path.resolve(__dirname, './dist');
// const src ="E:\\xxx\\src";
// const dist = "E:\\yy\\zz\\xxxx";
syncUpdate(src, dist);

cmd 中运行

当 src 目录中文件发生变化, dist 中可以同步到此变化;不需要使用 modemon

node index.js

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i sync-update

    Weekly Downloads

    1

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    6.24 kB

    Total Files

    5

    Last publish

    Collaborators

    • wuyonggang100