Verified Commit 3c2ac70c authored by Bogdan Bodnar's avatar Bogdan Bodnar
Browse files

Fix static paths.

parent bae0dedc
Pipeline #54003 passed with stage
in 7 minutes and 50 seconds
......@@ -109,4 +109,4 @@ venv.bak/
## mypy
.mypy_cache/
reforis_static/{{cookiecutter.plugin_name_snake}}/app.min.js
reforis_static/reforis_{{cookiecutter.plugin_name_snake}}/js/app.min.js
......@@ -11,8 +11,10 @@ module.exports = () => ({
mode: "development",
entry: "./src/app.js",
output: {
// Build js app to ../reforis_static{python_module_name}/js/app.min.js
// See https://gitlab.labs.nic.cz/turris/reforis/reforis-distutils/blob/master/reforis_distutils/__init__.py#L11
filename: "app.min.js",
path: path.join(__dirname, "../reforis_static/{{cookiecutter.plugin_name_snake}}/"),
path: path.join(__dirname, "../reforis_static/reforis_{{cookiecutter.plugin_name_snake}}/"),
},
resolve: {
modules: [
......
......@@ -15,7 +15,9 @@ blueprint = Blueprint(
# pylint: disable=invalid-name
{{cookiecutter.plugin_name_snake}} = {
'blueprint': blueprint,
'js_app_path': '{{cookiecutter.plugin_name_snake}}/app.min.js'
# Define {python_module_name}/js/app.min.js
# See https://gitlab.labs.nic.cz/turris/reforis/reforis-distutils/blob/master/reforis_distutils/__init__.py#L11
'js_app_path': 'reforis_{{cookiecutter.plugin_name_snake}}/js/app.min.js'
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment