Sencha应用程序构建开发不会将JS文件复制到/build文件夹 [英] Sencha app build development does not copy JS files to /build folder

查看:57
本文介绍了Sencha应用程序构建开发不会将JS文件复制到/build文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用EXTJS6/sencha cmd 6.1.我正在我的应用程序上运行 sencha应用程序构建开发,但是它没有将我的javascript文件复制到构建文件夹中.我搜索并了解了质量检查和测试;生产版本将JS文件缩小,然后将其复制到与开发版本不同的版本中.我相信,使用build.xml中的copy任务,我们可以将JS文件复制到build文件夹中.

I am working with EXTJS6/sencha cmd 6.1. I am running sencha app build development on my application but it does not copy my javascript files to the build folder. I searched and learnt that QA & Production builds minifies the JS files and copy it to the build where as Development build does not. I believe, using copy task in build.xml we can copy the JS files in the build folder.

由于JS文件已复制到build文件夹中,所以我无法将DEV build从build文件夹发送到Server.有人可以提供示例或指导我如何在build.xml中编写复制任务吗?还有其他选择吗?

Since, the JS Files are copied in the build folder, I can not send the DEV build from build folder to Server.Can someone has an example or guide me on how to write the copy task in build.xml or are there any other alternatives?

谢谢,gendaful

Thanks, gendaful

推荐答案

我相信sencha应用程序构建开发已更改.在以前的版本中,它创建了一个开发构建目录.现在,它只是最小化了根目录中的数据,因此您可以直接从那里运行它.

I believe that what sencha app build development has changed. in previous versions, it created a development build directory. Now, it just minifies the data in your root directory so that you can run it directly from there.

我的工作流程现在是"Sencha App Watch",并在进行开发时从根目录运行.当我要测试生产版本时,我进行了sencha app build生产,并且该文件夹的创建与以前一样.

My workflow is now I just do "Sencha App Watch" and run from my root while doing development. When I want to test my production build I do sencha app build production and the folder gets created as before.

HTH.

这篇关于Sencha应用程序构建开发不会将JS文件复制到/build文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆