webpack-chain icon indicating copy to clipboard operation
webpack-chain copied to clipboard

Can I set the `alias` with an array?

Open lemon-clown opened this issue 5 years ago • 1 comments

in my tsconfig.json, I can specify path alias such as following:

"baseUrl": ".",
"paths": {
  "@/*": [ "src/main/*", "src/resources/*" ]
},

and then, I can import resource file 'src/resource/image/log.png' as '@/image/logo.png', and at the same time, I aslo can import file 'src/main/util/fs-util.ts' as '@/util/fs-util'.

I tried it, but got this error message: image

I hope I made myself clear, thank you!

lemon-clown avatar Aug 19 '19 09:08 lemon-clown

Any progress ?

MonchiLin avatar Dec 03 '20 15:12 MonchiLin