Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot combo #2

Open
ghost opened this issue Aug 1, 2015 · 0 comments
Open

cannot combo #2

ghost opened this issue Aug 1, 2015 · 0 comments

Comments

@ghost
Copy link

ghost commented Aug 1, 2015

I have got a demo.js node file, some .html files have been put to the src directory

var gulp = require('gulp');
var htmlone = require('gulp-htmlone');

gulp.task('htmlone', function() {
        gulp.src(['./src/*.html'])
                .pipe(htmlone({

        removeSelector: '', // selector 配置,源文档中符合这个selector的标签将自动移除
        keepliveSelector: '',  // 不要combo的selector配置,源文档中符合这个selector的将保持原状
        destDir: './dest',  // dest 目录配置,一般情况下需要和 gulp.dest 目录保持一致,用于修正相对路径资源
        coimport: true,  // 是否需要把 @import 的资源合并
        cssminify: true, // 是否需要压缩css
        jsminify: true  // 是否需要压缩js
}))
                .pipe(gulp.dest('./dest'));
});

run node demo.js but cannot got expected merged files. the dest folder was empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants