From 868f514f5bc35f381747f4b1eb1fd3fea2f9866a Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 3 Sep 2021 13:49:18 -0500 Subject: [PATCH] Webpack: use FE_BASE_PATH as publicPath --- webpack/shared.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webpack/shared.js b/webpack/shared.js index f8aca4794..ad790adba 100644 --- a/webpack/shared.js +++ b/webpack/shared.js @@ -11,6 +11,8 @@ const { UnusedFilesWebpackPlugin } = require('unused-files-webpack-plugin'); const { env, settings, output } = require('./configuration'); const rules = require('./rules'); +const { FE_BASE_PATH } = require(join(__dirname, '..', 'app', 'soapbox', 'build_config')); + const htmlWebpackPluginConfig = { template: 'app/index.ejs', chunksSortMode: 'manual', @@ -37,7 +39,7 @@ module.exports = { chunkFilename: 'packs/js/[name]-[chunkhash].chunk.js', hotUpdateChunkFilename: 'packs/js/[id]-[hash].hot-update.js', path: output.path, - publicPath: '/', + publicPath: FE_BASE_PATH, }, optimization: {