angular.js - Angular2 loader packaged using webpack
迷茫
迷茫 2017-05-15 17:07:37
0
1
540
  1. I found a problem. When I use webstorm to write ts files, webstorm compiles ts into js by default. Then I use webpack with the following configuration. By default, it will directly find the file that has been generated by webstorm. js, without recompiling it by itself, resulting in those templeUrls not being modularized.

  1. Is there any way to make webpack recompile it regardless of whether there is js generated by webstorm in the path?

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(1)
我想大声告诉你

The root cause is found. The above configuration resolve prioritizes js by default. Just put ts in front of js

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template