Merge pull request #277 from RubenPX/add-developement-stuff-js
Add developement build & precomit build (javascript)
This commit is contained in:
commit
772d527ba6
|
@ -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
|
||||
|
|
|
@ -466,5 +466,11 @@
|
|||
perPage: 20
|
||||
})
|
||||
</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 %}
|
||||
|
|
Reference in New Issue