From 31f64f38350b52d47ea964b61c7945dd8d254923 Mon Sep 17 00:00:00 2001 From: Johan Castiblanco <51926076+johanv26@users.noreply.github.com> Date: Tue, 20 Jun 2023 18:13:44 -0500 Subject: [PATCH] feat: add option to public path cdn --- config/webpack.prod.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/webpack.prod.config.js b/config/webpack.prod.config.js index 8634a4f9a..d82ce8a8e 100644 --- a/config/webpack.prod.config.js +++ b/config/webpack.prod.config.js @@ -63,7 +63,7 @@ module.exports = merge(commonConfig, { output: { filename: '[name].[chunkhash].js', path: path.resolve(process.cwd(), 'dist'), - publicPath: process.env.PUBLIC_PATH || '/', + publicPath: process.env.PUBLIC_PATH_CDN || process.env.PUBLIC_PATH || '/', }, module: { // Specify file-by-file rules to Webpack. Some file-types need a particular kind of loader.