node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »

mix-gulp-sass

SASS业务打包

配置说明

    {
        includePaths: 'sass',
        src: 'sass/*.scss',
        excludeSrc: 'sass/_*',
        devDest: 'local_css',
        prodDest: 'build_css',
        cleanSrc: 'build_css/**/*.css',
        version: {
            per: 'build_css/',
            base: 'build_css',
            src: 'build_css/*.css',
            dest: 'version/v.php'
        },
        componentsSass: {
            src: 'sass/components_css/com.scss',
            dest: 'components_css'
        },
        cdn: {
            src: './build_css/*.css',
            dest: '/v2/build/fuwu/',
            upyun: {
                operator: 'travisci',
                password: 'testtest',
                bucket: 'travis'
            },
            qiniu: {
                accessKey: 'ak',
                secretKey: 'sk',
                bucket: "your_bucket",
                private: false
            }
        }
    }

查看命令

    gulp mix-gulp-sass