1 changed files with 0 additions and 10 deletions
@ -1,10 +0,0 @@ |
|||||
import style from './style.json' |
|
||||
function importAll(r) { |
|
||||
const obj = {} |
|
||||
r.keys().forEach(key => { |
|
||||
obj[key.replace('./', '').replace('.png', '')] = r(key) |
|
||||
}) |
|
||||
return obj |
|
||||
} |
|
||||
const images = importAll(require.context('./', false, /\.(png|jpe?g|svg)$/)) |
|
||||
export default { ...style, images } |
|
||||
Loading…
Reference in new issue