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

exclude not working properly #1

Open
thesunlover opened this issue Dec 21, 2015 · 1 comment
Open

exclude not working properly #1

thesunlover opened this issue Dec 21, 2015 · 1 comment

Comments

@thesunlover
Copy link

Hello S.H.
Here is the case:
I want to add all files from subdir ./HTML,
but I need to skip specific extentions and files:
./HTML/scss/.scss,
"./HTML/app.appcache"
"./HTML/js/min/
.js.map"
i tried with the following config, but scss files are still in the generated cache manifest

gulp.task('manifest', function(){
    gulp.src(['./HTML/**/*'])
    .pipe(manifest({
        relativePath: "./",
        hash: true,
        preferOnline: false,
        network: ['http://*', 'https://*', '*'],
        filename: 'app.appcache',
        exclude: ['app.appcache','**/*.scss',]
     }))
    .pipe(gulp.dest("./HTML/"));
});

Thanks for support

@rejhgadellaa
Copy link

Having the same issue, at least with files that reside in subdirectories. I want to include all .js files (/*.js) but exclude the service worker (sw.js, this works) and libs it uses (js-sw-contrib//*, this doesn't work).

I tried filename only, path with wildcard and specifying path + filename:

"sw-toolbox.js",
"js-sw-contrib/**/*",
"js-sw-contrib/sw-toolbox/sw-toolbox.js",

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

2 participants