1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-17 06:52:27 +01:00

enable splitchunk

This commit is contained in:
Sylvain 2020-09-09 08:51:53 +02:00
parent e37e368e90
commit cd1abb15e8
2 changed files with 5 additions and 3 deletions

View File

@ -54,8 +54,8 @@
Fablab.sessionTours = []; Fablab.sessionTours = [];
</script> </script>
<%= stylesheet_pack_tag 'application', media: 'all' %> <%= stylesheet_packs_with_chunks_tag 'application', media: 'all' %>
<%= stylesheet_pack_tag 'printer', media: 'print' %> <%= stylesheet_packs_with_chunks_tag 'printer', media: 'print' %>
<% unless Stylesheet.theme.nil? %> <% unless Stylesheet.theme.nil? %>
<link rel="stylesheet" media="all" href="<%= stylesheet_path(Stylesheet.theme.id) %>-<%= Stylesheet.theme.updated_at.to_i.to_s %>.css" /> <link rel="stylesheet" media="all" href="<%= stylesheet_path(Stylesheet.theme.id) %>-<%= Stylesheet.theme.updated_at.to_i.to_s %>.css" />
<% end %> <% end %>
@ -120,7 +120,7 @@
<span class="text-sm">Powered by <a href="http://www.fab-manager.com" target="_blank">Fab-manager</a></span> <span class="text-sm">Powered by <a href="http://www.fab-manager.com" target="_blank">Fab-manager</a></span>
</div> </div>
<%= javascript_pack_tag 'application' %> <%= javascript_packs_with_chunks_tag 'application' %>
<!-- i18n of external libraries --> <!-- i18n of external libraries -->
<script type="text/javascript" src="<%= asset_pack_path "angular-i18n/angular-locale_#{Rails.application.secrets.angular_locale}.js" %>"></script> <script type="text/javascript" src="<%= asset_pack_path "angular-i18n/angular-locale_#{Rails.application.secrets.angular_locale}.js" %>"></script>

View File

@ -5,4 +5,6 @@ environment.plugins.append('Provide', new webpack.ProvidePlugin({
jQuery: 'jquery' jQuery: 'jquery'
})); }));
environment.splitChunks();
module.exports = environment; module.exports = environment;