2017-07-28 03:34 阅读 70


I just want to know what the best practices are for getting a task runner to serve an Angular application that compiles Sass, reloads or "watches" PHP, and can query a MySQL database.

I have an app that uses Gulp to reload PHP and compile Sass, but I want to add Angular into the mix!

Any resources, comments, or questions are welcome!

Also, I followed the Webpack documentation on the Angular website (angular.io) but I was unable to deploy my application. Angular has just recently adopted webpack as a task runner/bundler.

Should I just continue to study Webpack or is there some type of workaround?



  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

  • 已采纳
    douyu2817 douyu2817 2017-07-28 05:10

    Though its choice based but I would say stick to Webpack2. Its more powerful, widely used and getting better functionalities with time. Even most frameworks have CLI like angular-cli that use webpack2 under the hood. It also has the loaders to compile sass to css as you need. Checkout this github link that lists the steps to compile sass to css using Webpack loaders.


    点赞 评论 复制链接分享