Skip to content

Commit ad90a62

Browse files
committed
Adding automated switch for the development and production dist packages when using the asset pipeline.
The matestack user can just add: //= require 'matestack-ui-core' This will use the asset pipeline and use the regular matestack version in development and testing. In production, this will use the minified version where also vuejs is in production mode. #343
1 parent 7d07144 commit ad90a62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
<% require_asset 'dist/matestack-ui-core' %>
1+
<% require_asset (Rails.env.production? ? 'dist/matestack-ui-core.min' : 'dist/matestack-ui-core') %>
22

0 commit comments

Comments
 (0)