r.js的build.js的详细配置解析
{
baseUrl: "../src",//当前文件的父目录的兄弟src目录,意思是这个目录会被完全复制到dir目录下面
mainConfigFile: '../src/init-config.js',//require.config的配置,path
dir: '../dist-rjs/build_home',//输出目录,输出src下面的所有文件到dir目录下面
/*optimize:"none",*///默认会压缩所有src下面的js文件,closure|none;none则只进行合并,不进行压缩,vendor还是会合并到一个
cssImportIgnore:null,//如果optimizeCss可用,列出忽略css优化的文件,此处null指无忽略文件
optimizeCss:"none",//“none”: 跳过CSS优化
/*removeCombined: true,*/ //吧以下内容压缩到vendor.js下面,原文件进行压缩,压缩后进行删除
modules: [
{
name: 'vendor',//吧以下内容压缩到vendor.js下面,原文件进行压缩,源文件位置不变并不删除
include: ["bootstrap",
"dateutil",
"route",
"jquery",
"es5shim",
"bs_pagination",
"template",
"datatables.net",
"dataTables.bootstrap.min",
"dialog",
"superfish",
"pikaday",
"moment",
"encoder"]
},
{
name: 'common',
include: ["ui/validation",
"ui/jquery.dotdotdot.min",
"util/checkPasswordStrong",
"util/cookie",
"util/loading",
"util/httpPrompt",
"util/humanNumber",
"util/md5",
"util/nuclear",
"util/pageHelp",
"util/storage",
"util/validators",
"util/vCode",
"service/service"],
exclude: ['vendor','appUrls']
},
//////////这两个模块在pop-shared-web-components中,这里仅做占位/////////////
{
name: 'navMenus'
},
{
name: 'appUrls'
},
////////////////////////////////////////////////////////////////////////////
{
name: 'init-config',
exclude: ['vendor', 'common','navMenus','appUrls']
},
{
name: 'modules/investor/investor/blacklist/index',
exclude: ['common','vendor','appUrls']
},
{
name: 'modules/investor/investor/change/index',
exclude: ['common','vendor','appUrls']
},
{
name: 'modules/investor/investor/ecode/index',
exclude: ['common','vendor','appUrls']
},
{
name: 'modules/investor/investor/frozen/index',
exclude: ['common','vendor','appUrls']
},
{
name: 'modules/investor/investor/holding/index',
exclude: ['common','vendor','appUrls']
},
{
name: 'modules/investor/investor/huStock/index',
exclude: ['common','vendor','appUrls']
},
{
name: 'modules/investor/investor/income/index',
exclude: ['common','vendor','appUrls']
},
{
name: 'modules/investor/investor/luckly/index',
exclude: ['common','vendor','appUrls']
},
{
name: 'modules/investor/investor/shenStock/index',
exclude: ['common','vendor','appUrls']
},
{
name: 'modules/error/forbiddenNotBind',
exclude: ['common','vendor','appUrls']
}
]
}
见图实例
r.js的build.js的详细配置解析的更多相关文章
- r.js 配置文件 build.js 不完整注释
-----------------------------------------------------------------------r.js 配置文件 example.build.js ...
- webpack详细配置解析
阅读本文之前,先看下面这个webpack的配置文件,如果每一项你都懂,那本文能带给你的收获也许就比较有限,你可以快速浏览或直接跳过:如果你和十天前的我一样,对很多选项存在着疑惑,那花一段时间慢慢阅读本 ...
- log4j详细配置解析
出自:http://www.blogjava.net/zJun/archive/2006/06/28/55511.html Log4J的配置文件(Configuration File)就是用来设置记录 ...
- webpack4打包报错ERROR in multi ./src/main.js dist/bundle.js
webpack打包测试: 上边将mode01.js模块及main.js主文件编写完成,下边使用webpack对这些js文件进行打包 1.进入程序目录,执行webpack main.js build.j ...
- r.js build.js配置
/* * This is an example build file that demonstrates how to use the build system for * require.js. * ...
- r.js合并实践 --项目中用到require.js做生产时模块开发 r.js build.js配置详解
本文所用源代码已上传,需要的朋友自行下载:点我下载 第一步: 全局安装 npm install -g requirejs 第二步: 1.以下例子主要实现功能, 1)引用jq库获取dom中元素文本, ...
- r.js 配置文件 example.build.js 不完整注释
/* * This is an example build file that demonstrates how to use the build system for * require.js. * ...
- 转: requirejs压缩打包r.js使用示例 2 (~~很详细的教程)
这一篇来认识下打包工具的paths参数,在入门一中 就介绍了require.config方法的paths参数.用来配置jquery模块的文件名(jQuery作为AMD模块时id为“jquery”, 但 ...
- vue-cli的webpack模版项目配置解析-build/dev-server.js
我们在使用vue-cli搭建vuejs项目(Vuejs实例-01使用vue-cli脚手架搭建Vue.js项目)的时候,会自动生成一系列文件,其中就包含webpack配置文件.我们现在来看下,这些配置到 ...
随机推荐
- ffmpeg 日志系统av_log()
一般使用Error, Warning, Debug3个级别即可(见下面的颜色).AV_LOG_QUIET 核心函数只有一个:av_log().使用av_log()在控制台输出日志的效果如下图所示. a ...
- 【BZOJ】1026: [SCOI2009]windy数(数位dp)
http://www.lydsy.com/JudgeOnline/problem.php?id=1026 我果然很弱啊... 考虑数位dp.枚举每一位,然后限制下一位即可. 一定要注意啊!在dfs的时 ...
- datagrid加分组后的效果
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAd8AAADdCAIAAAB13e+wAAAZgElEQVR4nO2d/28b533Hn7+APxnYgL ...
- vc6项目-vc8项目 转换日志
此随笔参考了http://blog.163.com/feng_qihang/blog/static/7129199120093422722430/ 把VC6的项目转换成VS2005项目,经过VS200 ...
- structure machine learning projects 课程笔记
orthogonalization/ one metric train.dev/test 划分 开发集和测试集一定来自同一分布 onthe same distribution Human leve ...
- HasMany() = (1..*) HasOptional() = (1..0,1) HasRequired() = (1..1)
http://www.cnblogs.com/yeagen/archive/2012/10/15/2724237.html
- 好久没写blog了 ~ 换了个城市,换了个公司,各种忙碌
最近一直在忙工作交接以及换城市.入职的事情 ~~~ 新公司做C++的比较少,so全上C++11了,写代码各种爽. 最近应该会写一点关于QT的blog , 学到新知识了哈.
- SpringMVC学习(十一)——SpringMVC实现Resultful服务
http://blog.csdn.net/yerenyuan_pku/article/details/72514034 Restful就是一个资源定位及资源操作的风格,不是标准也不是协议,只是一种风格 ...
- git pull报错:There is no tracking information for the current branch
报错: There is no tracking information for the current branch. Please specify which branch you want to ...
- 基于minikube的kubernetes集群部署及Vitess最佳实践
简介 minikube是一个可以很容易在本地运行Kubernetes集群的工具, minikube在电脑上的虚拟机内运行单节点Kubernetes集群,可以很方便的供Kubernetes日常开发使用: ...