From 88b5644a6c2594887d6f99f1cad72a1b58d60fe4 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 11 Jul 2020 17:23:12 +0200 Subject: more fixes --- cli/commands/site/export.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli') diff --git a/cli/commands/site/export.py b/cli/commands/site/export.py index d9dbbf7..5f4636a 100644 --- a/cli/commands/site/export.py +++ b/cli/commands/site/export.py @@ -68,9 +68,9 @@ def cli(ctx, opt_graph_path, opt_output_dir): # build javascript print("Building javascript...") - print(f'NODE_ENV=production webpack --config ./webpack.config.site.js -o {graph_dir}/bundle.js') + print(f'NODE_ENV=production node ./node_modules/webpack-cli/bin/cli.js --config ./webpack.config.site.js -o {graph_dir}/bundle.js') os.chdir(app_cfg.DIR_PROJECT_ROOT) - os.system(f'NODE_ENV=production webpack --config ./webpack.config.site.js -o {graph_dir}/bundle.js') + os.system(f'NODE_ENV=production node ./node_modules/webpack-cli/bin/cli.js --config ./webpack.config.site.js -o {graph_dir}/bundle.js') print("Site export complete!") print(f"Graph exported to: {graph_dir}") -- cgit v1.2.3-70-g09d2