diff options
author | Wu Cheng-Han | 2017-03-20 01:39:09 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2017-03-20 01:39:09 +0800 |
commit | 448b0061945b65dc36c08eaf6752060600d5895d (patch) | |
tree | 9b7dee9a9617518404f5a02a014f535f59ac24e6 /public/views | |
parent | b07eeed0c5a3c8de28e27326967cea592071ca6a (diff) |
Update to generate front-end constants on server startup
To avoid extra webpacking on changing configs and follow the 12 factor app
Diffstat (limited to '')
-rw-r--r-- | public/views/includes/scripts.ejs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/public/views/includes/scripts.ejs b/public/views/includes/scripts.ejs index 20d4003a..8766894a 100644 --- a/public/views/includes/scripts.ejs +++ b/public/views/includes/scripts.ejs @@ -1,3 +1,4 @@ +<script src="<%= webpackConfig.output.baseUrl %>/build/constant.js"></script> <% for (var chunk in htmlWebpackPlugin.files.chunks) { %> <script src="<%= webpackConfig.output.baseUrl %><%= htmlWebpackPlugin.files.chunks[chunk].entry %>" defer></script> <% } %> |