diff --git a/package/config.js b/package/config.js index 10d541c23..16ff25c62 100644 --- a/package/config.js +++ b/package/config.js @@ -40,5 +40,6 @@ const getPublicPath = () => { } config.publicPath = getPublicPath() +config.publicPathWithoutCDN = `/${config.public_output_path}/` module.exports = config diff --git a/package/environments/base.js b/package/environments/base.js index ac2d26ba7..901efd20c 100644 --- a/package/environments/base.js +++ b/package/environments/base.js @@ -46,7 +46,7 @@ const getPluginList = () => { integrity: false, entrypoints: true, writeToDisk: true, - publicPath: true + publicPath: config.publicPathWithoutCDN }) ) return result