0.1.1 • Published 9 years ago

magix-app-build v0.1.1

Weekly downloads
21
License
-
Repository
github
Last release
9 years ago

Magix应用打包脚本

This is the tools used for the release of Magix Application

使用方法

首次使用

安装

npm install magix-app-build

根据你的应用配置Gruntfile.js

    magix: {

        build: {

            //magix view 所在的入口文件夹路径
            src: '/opt/local/share/nginx/html/mbp-new/app/',
            //处理后文件夹的路径
            dest: '/opt/local/share/nginx/html/magix-app-build/build/app/'

        },
        options: {

            //压缩级别
            compress: 'normal',
            //中文转化unicode
            c2u: false,
            //view对应模板字段的key
            tmplKey: 'template',
            minSuffix: '.min'//压缩文件的后缀名称 可以是 .min -min(默认) 如果是no则保持原来的文件名 index.css压缩后仍是 index.css

        }
    }

执行grunt magix即可