Merge pull request #277 from RubenPX/add-developement-stuff-js

Add developement build & precomit build (javascript)
This commit is contained in:
Santiago L 2022-06-06 16:45:10 +02:00 committed by GitHub
commit 772d527ba6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View File

@ -15,3 +15,9 @@ repos:
rev: 0.0.9
hooks:
- id: check_pdb_hook
- repo: local
hooks:
- id: build-js
name: build-js
entry: npm run babel
language: node

View File

@ -466,5 +466,11 @@
perPage: 20
})
</script>
<script src="{{ url_for('static', filename='js/main_inventory.build.js') }}"></script>
{% if config['DEBUG'] %}
<script src="{{ url_for('static', filename='js/main_inventory.js') }}"></script>
{% else %}
<script src="{{ url_for('static', filename='js/main_inventory.build.js') }}"></script>
{% endif %}
{% endblock main %}