What is the right way to set a different <base> for dev/staging/production

前端 未结 6 594
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-10 01:07

for dev and production are different(for production it\'s subfolder). What is the good way to build different base with webp

6条回答
  •  遥遥无期
    2020-12-10 01:56

    If you are using webpack, you will certainly have to set output.publicPath to the same value. See HtmlWebpackPlugin injects relative path files which breaks when loading non-root website paths

提交回复
热议问题