diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-12-14 21:47:23 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-12-14 21:47:23 +0100 |
| commit | 7b56f23b11ef78dafae13495ef878cebaf97f061 (patch) | |
| tree | 5b810d4f0c6bc70b6cde4f207a1d6ec325fab705 /views/partials | |
| parent | fcf86a6e78fd6631dbc6b2046f4aff7cf08eef8a (diff) | |
js minify process for production
Diffstat (limited to 'views/partials')
| -rw-r--r-- | views/partials/footer.ejs | 6 | ||||
| -rw-r--r-- | views/partials/header.ejs | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/views/partials/footer.ejs b/views/partials/footer.ejs index 163e28b..d5d82d0 100644 --- a/views/partials/footer.ejs +++ b/views/partials/footer.ejs @@ -1,5 +1,9 @@ </content> <% include ../partials/404 %> </body> -<% include ../partials/scripts %> +<% if (env == 'production') { %> + <script src="/assets/min/app.min.js"></script> +<% } else { %> + <% include ../partials/scripts %> +<% } %> </html>
\ No newline at end of file diff --git a/views/partials/header.ejs b/views/partials/header.ejs index f31594b..c810114 100644 --- a/views/partials/header.ejs +++ b/views/partials/header.ejs @@ -10,7 +10,7 @@ <body class="loading"> <header> - <% include ../partials/searchform %> <h1><%= title %></h1> + <% include ../partials/searchform %> </header> <content>
\ No newline at end of file |
