dpa31905
2017-07-28 03:34
浏览 74
已采纳

是否可以使用Webpack,Sass,PHP和MySQL运行Angular?

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?

Thanks!!

-Donald

图片转代码服务由CSDN问答提供 功能建议

我只想知道让任务运行器为编写Sass的Angular应用程序提供服务的最佳实践, 重新加载或“监视”PHP,并可以查询MySQL数据库。

我有一个使用Gulp重新加载PHP并编译Sass的应用程序,但我想将Angular添加到混合中! / p>

欢迎任何资源,评论或问题!

此外,我还关注了Angular网站上的Webpack文档(angular.io)但我是 无法部署我的应用程序。 Angular刚刚采用webpack作为任务运行器/捆绑器。

我应该继续学习Webpack还是有某种类型的解决方法?

谢谢!!

-Donald

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • 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.

    https://github.com/webpack-contrib/sass-loader

    打赏 评论

相关推荐 更多相似问题