Permalink
Browse files

renaming custom build of WP riveted.min.js

  • Loading branch information...
robflaherty committed Feb 17, 2014
1 parent 96da92b commit 50c974942a50e5c9db567c7c565e9276a2e3d784
View
@@ -1,5 +1,8 @@
#!/bin/bash
# Minify
uglifyjs riveted.js -c -m --comments -o riveted.min.js
cp ./riveted.min.js ./wp-plugin/Riveted/js/riveted.min.js
cat ./wp-plugin/Riveted/js/init.js >> ./wp-plugin/Riveted/js/riveted.min.js
# Update WordPress plugin
cp ./riveted.min.js ./wp-plugin/Riveted/js/riveted-wp.js
cat ./wp-plugin/Riveted/js/init.js >> ./wp-plugin/Riveted/js/riveted-wp.js
@@ -89,7 +89,7 @@ function load_riveted() {
//print_r($options);
wp_enqueue_script( 'riveted', plugins_url() . '/riveted/js/riveted.min.js', array(), '0.3', true );
wp_enqueue_script( 'riveted', plugins_url() . '/riveted/js/riveted-wp.js', array(), '0.3', true );
wp_localize_script( 'riveted', 'riveted_options', $options );
}

0 comments on commit 50c9749

Please sign in to comment.