1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-06-27 16:36:00 +00:00

Rename wallassets to build

This commit is contained in:
Yassine Guedidi 2025-01-19 19:52:20 +01:00
parent 5e8ca0887e
commit c89878d88e
5 changed files with 10 additions and 6 deletions

2
.gitignore vendored
View file

@ -29,7 +29,7 @@ web/uploads/
!/web/bundles/.gitkeep
/web/assets/images/*
!web/assets/images/.gitkeep
/web/wallassets/*
/web/build/*
# Build
/app/build

View file

@ -1,5 +1,9 @@
# Changelog
## Upcoming changes
* `wallassets/` folder renamed to `build/`
## [2.6.10](https://github.com/wallabag/wallabag/tree/2.6.10)
[Full Changelog](https://github.com/wallabag/wallabag/compare/2.6.9...2.6.10)

View file

@ -11,7 +11,7 @@ module.exports = {
},
output: {
filename: '[name].js',
path: path.resolve(projectDir, 'web/wallassets'),
path: path.resolve(projectDir, 'web/build'),
publicPath: '',
},
plugins: [

View file

@ -18,9 +18,9 @@
<meta name="twitter:title" content="{{ entry.title|e|raw }}" />
<meta name="twitter:description" content="{{ entry.content|striptags|slice(0, 300)|raw }}&hellip;" />
{% if app.debug %}
<script src="{{ asset('wallassets/public.dev.js') }}"></script>
<script src="{{ asset('build/public.dev.js') }}"></script>
{% else %}
<link rel="stylesheet" href="{{ asset('wallassets/public.css') }}">
<link rel="stylesheet" href="{{ asset('build/public.css') }}">
{% endif %}
</head>

View file

@ -3,13 +3,13 @@
{% block css %}
{{ parent() }}
{% if not app.debug %}
<link rel="stylesheet" href="{{ asset('wallassets/main.css') }}">
<link rel="stylesheet" href="{{ asset('build/main.css') }}">
{% endif %}
{% endblock %}
{% block scripts %}
{{ parent() }}
<script src="{{ asset('wallassets/main' ~ (app.debug ? '.dev' : '') ~ '.js') }}"></script>
<script src="{{ asset('build/main' ~ (app.debug ? '.dev' : '') ~ '.js') }}"></script>
{% endblock %}
{% block header %}