Skip to content

Commit

Permalink
fixed building web without preloaded node_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
bugy committed Jan 28, 2019
1 parent 07146a6 commit 5a3658e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ def download_web_files(project_path):
def build_web_files(prod, project_path):
print('Building web...')
npm_mode = 'prod' if prod else 'dev'
process_utils.invoke('npm run build:' + npm_mode, os.path.join(project_path, 'web-src'))
work_dir = os.path.join(project_path, 'web-src')
process_utils.invoke('npm install', work_dir)
process_utils.invoke('npm run build:' + npm_mode, work_dir)
print('Done')


Expand Down

0 comments on commit 5a3658e

Please sign in to comment.