L
L
LionG2022-01-18 14:22:26
webpack
LionG, 2022-01-18 14:22:26

Why doesn't openPage work with an array of pages (Vue CLI, WebPack4)?

I set up devServer and for some reason openPage does not work correctly with an array. What am I doing wrong? According to the docs, string/array strings are supported. Webpack 4.46.0.

openPage: '/app.html' //открывает localhost:8080/app.html (ок)
openPage: ['/app.html'] //открывает localhost:8080 (а должен app.html)
openPage: ['/app.html', '/second.html'] //открывает только localhost:8080 (а должен app.html и second.html)


I tried checking the config with
vue inspect --mode development > webpack.config.js
but for some reason there is no devServer section.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2022-01-18
@Aetae

Congratulations, you've found a bug in @vue/cli. Get them an issue on github.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question