Git Product home page Git Product logo

Comments (12)

yanhaijing avatar yanhaijing commented on July 19, 2024

即便路径不同也会被过滤掉

from fis3-deploy-skip-packed.

yanhaijing avatar yanhaijing commented on July 19, 2024

还没修好?还等着用呢

from fis3-deploy-skip-packed.

2betop avatar 2betop commented on July 19, 2024

你给我支个招吧

from fis3-deploy-skip-packed.

yanhaijing avatar yanhaijing commented on July 19, 2024

这。。。判断的时候也判断路径不行?

from fis3-deploy-skip-packed.

2betop avatar 2betop commented on July 19, 2024

具体点?

from fis3-deploy-skip-packed.

yanhaijing avatar yanhaijing commented on July 19, 2024

说真的,我就不知道了,修不好就留个大bug在这啊

from fis3-deploy-skip-packed.

2betop avatar 2betop commented on July 19, 2024

这样,打包文件, css sprite 的分开配置,先只过滤打包的文件吧,css sprite 先不过滤,因为被引用的可能性比较大

from fis3-deploy-skip-packed.

2betop avatar 2betop commented on July 19, 2024

新加了配置项,可以配置 ignore 把那种即打包,又单独引用的图片配置不排除。

from fis3-deploy-skip-packed.

yanhaijing avatar yanhaijing commented on July 19, 2024

棒棒哒

from fis3-deploy-skip-packed.

yanhaijing avatar yanhaijing commented on July 19, 2024

你readme的demo给的还是匹配全部文件,你给来个例子,怎么匹配sprite的文件啊

from fis3-deploy-skip-packed.

yanhaijing avatar yanhaijing commented on July 19, 2024

打包文件和非打包文件一般分布在不同的文件夹中,每个模块都有自己的打包和非打包文件

from fis3-deploy-skip-packed.

2betop avatar 2betop commented on July 19, 2024

你的意思如何匹配既被 csssprite 合并了的,同时又被 html 中引用了的图片?

这个程序没法判断到,只能写死配置。

fis.match('**', {
  deploy: [
    fis.plugin('skip-packed', {
      // 默认被打包了 js 和 css 以及被 css sprite 合并了的图片都会在这过滤掉,
      // 但是如果这些文件满足下面的规则,则依然不过滤
      ignore: [
        '/static/images/*.gif'
      ]
    }),

    fis.plugin('local-deliver', {
      to: 'output'
    })
  ]
})

from fis3-deploy-skip-packed.

Related Issues (3)

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.