WIP: rtl-css workaround
Link node_modules where frappe expects them to be
This commit is contained in:
parent
4a3e30097a
commit
9ecee0f00e
18
node/esbuild-js-fix-css-build.patch
Normal file
18
node/esbuild-js-fix-css-build.patch
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
diff --git a/esbuild/esbuild.js b/esbuild/esbuild.js
|
||||||
|
index c3b59bcd9e..86af51a110 100644
|
||||||
|
--- a/esbuild/esbuild.js
|
||||||
|
+++ b/esbuild/esbuild.js
|
||||||
|
@@ -166,12 +166,7 @@ function build_assets_for_apps(apps, files) {
|
||||||
|
files: style_file_map,
|
||||||
|
outdir: output_path,
|
||||||
|
});
|
||||||
|
- let rtl_style_build = build_style_files({
|
||||||
|
- files: rtl_style_file_map,
|
||||||
|
- outdir: output_path,
|
||||||
|
- rtl_style: true,
|
||||||
|
- });
|
||||||
|
- return Promise.all([build, style_build, rtl_style_build]);
|
||||||
|
+ return Promise.all([build, style_build]);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
|
@ -52,6 +52,10 @@ let
|
||||||
hash = "sha256-PBdMUz9gJIoQaqQYbdk+xnd8CyZPmdeyz/9WznCb4Ss=";
|
hash = "sha256-PBdMUz9gJIoQaqQYbdk+xnd8CyZPmdeyz/9WznCb4Ss=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
./esbuild-js-fix-css-build.patch
|
||||||
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
# Yarn writes cache directories etc to $HOME.
|
# Yarn writes cache directories etc to $HOME.
|
||||||
|
@ -81,6 +85,10 @@ let
|
||||||
|
|
||||||
yarn --offline production
|
yarn --offline production
|
||||||
|
|
||||||
|
# Frappe expects node_modules linked to this directory
|
||||||
|
ln -s ${erpnext-modules}/node_modules sites/assets/erpnext/node_modules
|
||||||
|
ln -s $node_modules sites/assets/frappe/node_modules
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
rm sites/apps.txt
|
rm sites/apps.txt
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue