mizner
9/4/2016 - 9:59 AM

Enqueue our dynamic webpack code

Enqueue our dynamic webpack code

		if(false == IVAN_OFFSET_DEBUG) {
			// Register main theme styles and enqueue it.
			// Hint: you can unregister it and replace by your own compiled version in a child theme.
			wp_enqueue_style( 'ivan-theme-styles', get_template_directory_uri() . '/css/theme-styles'.$prefix.'.css', array(), '1' );
		} else {
			wp_enqueue_script( 'webpack-dev-server', 'http://localhost:3002/webpack-dev-server.js', array(), null, false );
			wp_enqueue_script( 'webpack-bundle', 'http://localhost:3002/hmr/bundle.js', array(), null, false );
		}