{
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的详细配置解析的更多相关文章

  1. r.js 配置文件 build.js 不完整注释

      -----------------------------------------------------------------------r.js 配置文件 example.build.js ...

  2. webpack详细配置解析

    阅读本文之前,先看下面这个webpack的配置文件,如果每一项你都懂,那本文能带给你的收获也许就比较有限,你可以快速浏览或直接跳过:如果你和十天前的我一样,对很多选项存在着疑惑,那花一段时间慢慢阅读本 ...

  3. log4j详细配置解析

    出自:http://www.blogjava.net/zJun/archive/2006/06/28/55511.html Log4J的配置文件(Configuration File)就是用来设置记录 ...

  4. webpack4打包报错ERROR in multi ./src/main.js dist/bundle.js

    webpack打包测试: 上边将mode01.js模块及main.js主文件编写完成,下边使用webpack对这些js文件进行打包 1.进入程序目录,执行webpack main.js build.j ...

  5. r.js build.js配置

    /* * This is an example build file that demonstrates how to use the build system for * require.js. * ...

  6. r.js合并实践 --项目中用到require.js做生产时模块开发 r.js build.js配置详解

    本文所用源代码已上传,需要的朋友自行下载:点我下载 第一步: 全局安装  npm install -g requirejs 第二步: 1.以下例子主要实现功能, 1)引用jq库获取dom中元素文本, ...

  7. r.js 配置文件 example.build.js 不完整注释

    /* * This is an example build file that demonstrates how to use the build system for * require.js. * ...

  8. 转: requirejs压缩打包r.js使用示例 2 (~~很详细的教程)

    这一篇来认识下打包工具的paths参数,在入门一中 就介绍了require.config方法的paths参数.用来配置jquery模块的文件名(jQuery作为AMD模块时id为“jquery”, 但 ...

  9. vue-cli的webpack模版项目配置解析-build/dev-server.js

    我们在使用vue-cli搭建vuejs项目(Vuejs实例-01使用vue-cli脚手架搭建Vue.js项目)的时候,会自动生成一系列文件,其中就包含webpack配置文件.我们现在来看下,这些配置到 ...

随机推荐

  1. 【Mac + GitHub】之在另一台Mac电脑上下载GitHub的SSH链接报错

    当输入git命令github项目时报错: ⇒ git clone git@github.com:/TX-Class.git Cloning into 'TX-Class'... Warning: Pe ...

  2. SWT将系统图标保存为本地文件

    public class SWTImage {     public static void main(String[] args) {         final Display display = ...

  3. css3 图片 悬停效果

    纯css实现 <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> ...

  4. Java 设计模式01 - 简单工厂模式

    先要学习设计模式之前的先看看一些基础 UML类图简单说明 可以先看看我的这篇博客: UML类图简单说明,学习编程思路的必会技能 接下来才是重点,开始我们的旅程吧. 一.UML类图展示 我们要用简单工厂 ...

  5. 【BZOJ】3391: [Usaco2004 Dec]Tree Cutting网络破坏(dfs)

    http://www.lydsy.com/JudgeOnline/problem.php?id=3391 显然判断每个点只需要判断子树是否小于等于n/2即可 那么我们虚拟一个根,然后计算每个子树的si ...

  6. python socket 简单例子

    myserver.py: import socket serversocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) serverso ...

  7. HDU 4970(杭电多校#9 1011题)Killing Monsters(瞎搞)

    题目地址:HDU 4970 先进行预处理.在每一个炮塔的火力范围边界标记一个点. 然后对每一个点的伤害值扫一遍就能算出来. 然后在算出每一个点到终点的总伤害值,并保存下来,也是扫一遍就可以. 最后在询 ...

  8. 【Raspberry pi+python+mysql】红外传感器-发邮件-存数据库

    1.mysql http://dev.mysql.com/doc/refman/5.5/en/tutorial.html mysql+python http://dev.mysql.com/doc/c ...

  9. Android一键锁屏源码

    APK下载 源程序下载 锁屏流程如下(参考于Android一键锁屏开发全过程[源码][附图]) 源码参考于一键锁屏 源码 一共有2个Java文件: package com.example.onekey ...

  10. SurvivalShooter学习笔记(一.相机跟随)

    1.场景碰撞已好,地板需建一Quad去掉渲染留下碰撞,设置layer为Floor:用于建立摄像机朝向地面的射线,确定鼠标停留点,确定主角需要的朝向. 2.设置摄像机跟随主角: 本例中摄像机设置为正交模 ...