Git Product home page Git Product logo

Comments (23)

jweboy avatar jweboy commented on July 16, 2024

Mark

from blog.

XiomgMingCai avatar XiomgMingCai commented on July 16, 2024

Mark

from blog.

yang123guo avatar yang123guo commented on July 16, 2024

mark an use it

from blog.

Mengkzhaoyun avatar Mengkzhaoyun commented on July 16, 2024

Mark

from blog.

NewPrototype avatar NewPrototype commented on July 16, 2024

Mark

from blog.

Maplesog avatar Maplesog commented on July 16, 2024

M

from blog.

MagicHacker avatar MagicHacker commented on July 16, 2024

M

from blog.

yanxiaochuan avatar yanxiaochuan commented on July 16, 2024

M

from blog.

hpboys avatar hpboys commented on July 16, 2024

Mark

from blog.

wbbhacker avatar wbbhacker commented on July 16, 2024

M

from blog.

GunSnake avatar GunSnake commented on July 16, 2024

Mark

from blog.

mrgu1609 avatar mrgu1609 commented on July 16, 2024

mark

from blog.

catboy1006 avatar catboy1006 commented on July 16, 2024

m

from blog.

wuyf123 avatar wuyf123 commented on July 16, 2024

mark

from blog.

JangYB avatar JangYB commented on July 16, 2024

mark

from blog.

linfeimy avatar linfeimy commented on July 16, 2024

Mark!

from blog.

unclemeric avatar unclemeric commented on July 16, 2024

mark

from blog.

ewillgo avatar ewillgo commented on July 16, 2024

mark

from blog.

zhangji1992 avatar zhangji1992 commented on July 16, 2024

thx.It helps a lot.

from blog.

tinyking avatar tinyking commented on July 16, 2024

thx

from blog.

bibichuan avatar bibichuan commented on July 16, 2024

const f = filter(['**', '!*/pagination.js'], {restore: true}); gulp.task('minify-js', function() { return gulp.src('./public/**/*.js') // .pipe(babel({presets: ['env']})) .pipe(f) .pipe(uglify()) .pipe(gulp.dest('./public')); });我想把public文件夹中的pagination.js过滤掉,但是这样写,pagination.js还是会被处理和压缩,这是什么原因呢?和windows系统有关系吗?
gulp-filter_1

from blog.

touxing avatar touxing commented on July 16, 2024

const f = filter(['**', '!*/pagination.js'], {restore: true}); gulp.task('minify-js', function() { return gulp.src('./public/**/*.js') // .pipe(babel({presets: ['env']})) .pipe(f) .pipe(uglify()) .pipe(gulp.dest('./public')); });我想把public文件夹中的pagination.js过滤掉,但是这样写,pagination.js还是会被处理和压缩,这是什么原因呢?和windows系统有关系吗?
gulp-filter_1

读取js和压缩后的js文件放在同一个目录可能会存在问题

你可以这样写

gulp.task('minify-js', function() {
  return gulp.src(['./public/**/*.js', '!./public/**/pagination.js'])
                    .pipe(uglify())
                    .pipe(gulp.dest('./otherFolder'))

})

from blog.

bibichuan avatar bibichuan commented on July 16, 2024

谢谢 @touxing

from blog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.