0.2.4 • Published 2 years ago

@jsx6/build v0.2.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

filters

During copy task you can transform the copied file content using filters.

config for filter contains

  • filter - function taht transforms and returns new value, but can return undefined to say no changes happened
  • include - list of include glob patterns
  • exclude - list of exclude glob patterns

example filter

const changeBg = {
  include: ['index.html'],
  exclude: [],
  filter: str => {
    let srch = 'background: #eee;'
    if (str.includes(srch)) return str.replace(srch, 'background: blue;')
  },
}
0.2.1

2 years ago

0.2.3

2 years ago

0.2.4

2 years ago

0.2.0

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.5

2 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago