Authored by whb

minify配置

... ... @@ -29,5 +29,27 @@ return array(
'//css/mobile.css',
'//css/emoji.css',
'//css/hook.css',
)
),
'index.js' => array(
'//js/lib/seajs.js',
'//js/lib/yohood.js',
'//js/lib/jquery.js',
'//js/plugins/swipe.js',
'//js/plugins/idangerous.swiper.js',
'//js/common.js',
'//js/plugins/share.js',
'//js/lib/ui/jquery.freetile.js',
'//js/lib/util/tools.js',
'//js/plugins/slider.js',
'//js/plugins/pagination.js',
'//js/plugins/imgZoom.js',
'//js/lib/util/json.js',
'//js/lib/ui/jquery.ui.js',
'//js/dialog.js',
'//js/lib/util/jquery.imagesLoaded.js'
),
'index.css'=> array(
'//css/index.css',
'//css/emoji.css',
)
);
\ No newline at end of file
... ...
... ... @@ -70,13 +70,15 @@ return array(
'open' => true,
'site' =>'www',
// JS链接路径
'js' => 'http://res.yohood'.SITE_DOMAIN.'/min/index.php?g=',
'js' => 'http://res.yohood'.SITE_DOMAIN.'/min/?g=',
// css链接路径
'css' => 'http://res.yohood'.SITE_DOMAIN.'/min/index.php?g=',
'css' => 'http://res.yohood'.SITE_DOMAIN.'/min/?g=',
),
'combinePage'=> array(
'index_mobile.js',
'index_mobile.css'
'index_mobile.css',
'index.js',
'index.css'
),
/**
* 插件配置
... ...
... ... @@ -8,8 +8,12 @@
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<meta name="renderer" content="webkit">
<link rel="dns-prefetch" href="<?php echo SITE_RES;?>">
<link rel="stylesheet" href="<?php echo SITE_RES;?>/css/index.css"/>
<link rel="stylesheet" href="<?php echo SITE_RES;?>/css/emoji.css"/>
<?php $this->_css('index.css', array(
SITE_RES . '/css/index.css',
SITE_RES . '/css/emoji.css',
));?>
<?php $this->_block('css');?>
<?php $this->_endblock();?>
</head>
<body>
<div class="yoho-nav clearfix">
... ...