1 | const DevServer = require('../dist/build/server').default
|
2 | const path = require('path')
|
3 |
|
4 | const apppath = path.resolve('.')
|
5 | const port = parseInt(process.argv[2])
|
6 | // 监测www目录的变动
|
7 | const webPath = process.argv[3]
|
8 | const watchPath = path.join(apppath, webPath)
|
9 | console.log('watchPath***', watchPath)
|
10 | new DevServer({ watchPath, port })
|