更改app下子文件夹下的文件时,“离子服务”不会重新加载/重建

时间:2017-08-10 03:24:14

标签: build ionic2 livereload

我正试图在我的ionic3项目中遵循angular的逐个功能结构。所以我在app文件夹下创建了一个功能文件夹,如下所示:

- src/
    - app/
        - about/
            - about.module.ts
            - components/
                - about.component.html
                - about.component.ts
                - about.component.scss

更改about文件夹下的任何文件时,ionic serve会触发重建过程,但构建的文件不会改变任何内容:

> ionic-app-scripts serve

[10:50:52]  ionic-app-scripts 2.1.3 
[10:50:52]  watch started ... 
[10:50:52]  build dev started ... 
[10:50:52]  clean started ... 
[10:50:52]  clean finished in 3 ms 
[10:50:52]  copy started ... 
[10:50:52]  transpile started ... 
[10:50:57]  transpile finished in 4.74 s 
[10:50:57]  preprocess started ... 
[10:50:57]  deeplinks started ... 
[10:50:57]  deeplinks finished in 181 ms 
[10:50:57]  preprocess finished in 183 ms 
[10:50:57]  webpack started ... 
[10:50:57]  copy finished in 5.14 s 
[10:51:08]  webpack finished in 10.82 s 
[10:51:08]  sass started ... 
[10:51:10]  sass finished in 2.06 s 
[10:51:10]  postprocess started ... 
[10:51:10]  postprocess finished in 5 ms 
[10:51:10]  lint started ... 
[10:51:10]  build dev finished in 17.86 s 
[10:51:10]  watch ready in 17.95 s 
[10:51:10]  dev server running: http://localhost:8100/ 

// -----> change any files under about folder

[10:51:16]  lint finished in 5.90 s 
[10:52:51]  build started ... 
[10:52:51]  template update started ... 
[10:52:51]  template update finished in 5 ms 
[10:52:51]  deeplinks update started ... 
[10:52:53]  deeplinks update finished in 1.59 s 
[10:52:53]  build finished in 1.60 s 

目前,我必须在每次更改时重新运行ionic serve

如何使这项工作?

0 个答案:

没有答案