fix(core): update
This commit is contained in:
parent
7ee934eb46
commit
587d08239a
@ -17,6 +17,8 @@ export class TsWatch {
|
|||||||
* starts the TsWatch instance
|
* starts the TsWatch instance
|
||||||
*/
|
*/
|
||||||
public async start() {
|
public async start() {
|
||||||
|
const tsbundle = new plugins.tsbundle.TsBundle();
|
||||||
|
const htmlHandler = new plugins.tsbundle.HtmlHandler();
|
||||||
switch (this.watchmode) {
|
switch (this.watchmode) {
|
||||||
case 'test':
|
case 'test':
|
||||||
this.watcherMap.add(
|
this.watcherMap.add(
|
||||||
@ -46,8 +48,7 @@ export class TsWatch {
|
|||||||
serveDir: plugins.path.join(paths.cwd, './dist_watch/'),
|
serveDir: plugins.path.join(paths.cwd, './dist_watch/'),
|
||||||
port: 3002,
|
port: 3002,
|
||||||
});
|
});
|
||||||
const tsbundle = new plugins.tsbundle.TsBundle();
|
|
||||||
const htmlHandler = new plugins.tsbundle.HtmlHandler();
|
|
||||||
const bundleAndReload = async () => {
|
const bundleAndReload = async () => {
|
||||||
await tsbundle.build(paths.cwd, './html/index.ts', './dist_watch/bundle.js', {
|
await tsbundle.build(paths.cwd, './html/index.ts', './dist_watch/bundle.js', {
|
||||||
bundler: 'esbuild'
|
bundler: 'esbuild'
|
||||||
|
Loading…
Reference in New Issue
Block a user