fix(admin-ui): Load translations from path (#5064)

* fix(admin-ui): Load translations from path

* Create big-oranges-battle.md

* fix: resolve public folder path in dev

---------

Co-authored-by: Kasper <kasper@medusajs.com>
This commit is contained in:
Oli Juhl
2023-09-15 13:19:24 +02:00
committed by GitHub
parent 53ffd614b5
commit c722440c30
5 changed files with 18 additions and 1 deletions
@@ -30,6 +30,7 @@ export function getWebpackConfig({
env,
options,
template,
publicFolder,
reporting = "fancy",
}: WebpackConfigArgs): Configuration {
const isProd = env === "production"
@@ -181,7 +182,7 @@ export function getWebpackConfig({
new CopyPlugin({
patterns: [
{
from: path.resolve(__dirname, "..", "ui", "public"),
from: publicFolder || path.resolve(__dirname, "..", "ui", "public"),
to: path.resolve(dest, "public"),
},
],