webpack-dev-server icon indicating copy to clipboard operation
webpack-dev-server copied to clipboard

Dynamic Import replace path

Open yaroslavert opened this issue 7 years ago • 0 comments

other.js var env = { url: " htts://any.domen.com" }

Index.js import('./entry')

entry.js console.log('run');

index.html

build all and get index and entry chunk.

entry chunk I am storage in " htts://any.domen.com"

I need Dynamic change chunk URL

example import({ chunkName: ./entry', path: env.url }) but it is not working. How can I do it?

yaroslavert avatar Apr 10 '19 13:04 yaroslavert