donglu9896 2014-10-13 07:35
浏览 36

Laravel - 在部署之前清理代码和构建

I have a Laravel web app that is ready to be deployed for production. What I want to do is to clean the code and build the package before pushing it live. All the css and js files need to be combined into one and minified.

I expect Laravel to have something like grunt build when developing with NodeJs and AngularJs, but seems like there's not.

Does anybody have done this with Laravel before?

  • 写回答

2条回答 默认 最新

  • duanbei3704 2014-10-13 07:43
    关注

    The next version of Laravel, Laravel 5, will have gulpjs support built into it. As for now, Laravel, doesn't come with any css/js build tools. In my applications, I install gulpjs into the app folder using npm install gulp. From there I can just run gulp as part of my build process.

    评论

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!