Skip to content

Commit

Permalink
fix: run process color for every ext
Browse files Browse the repository at this point in the history
  • Loading branch information
yarastqt committed Jun 11, 2020
1 parent ac9bca0 commit 3c258f8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/core/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ StyleDictionaryApi.registerAction({
name: 'process-color',
do: (_, config) => {
for (const file of config.files) {
if (file.destination.match(/\.css$/) === null) {
continue
}
const filePath = resolve(process.cwd(), config.buildPath, file.destination)
const colorRe = /color\(.+\)/g
let content = readFileSync(filePath, 'utf8')
Expand Down

0 comments on commit 3c258f8

Please sign in to comment.