Skip to content

cannot combo #2

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions