Skip to content

Commit

Permalink
add build tag: debug
Browse files Browse the repository at this point in the history
to switch produce|dev version of VueJS
  • Loading branch information
oskca committed Feb 25, 2017
1 parent 2ff578c commit ab40c9e
Show file tree
Hide file tree
Showing 7 changed files with 8,595 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ These are the basic rules to use this package:
should have an anonymous embeded `*js.Object` field and the `exported fields`
should have proper `js struct tag` for bidirectionaly data bindings

# Using the debug|dev version of VueJS

This package includes the `minified|product version` of VueJS code by default,
if you want to include the `debug|dev version` of of VueJS code, please specify
buidling tags `debug` to the `gopherjs build` cmd as this:

gopherjs build --tags debug main.go

for more details please see the examples.

Expand Down
5 changes: 5 additions & 0 deletions inc_debug.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
//+build debug

package vue

import _ "github.com/oskca/gopherjs-vue/jscode/debug"
5 changes: 5 additions & 0 deletions inc_minified.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
//+build !debug

package vue

import _ "github.com/oskca/gopherjs-vue/jscode/minified"
1 change: 1 addition & 0 deletions jscode/debug/inc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package debug
Loading

0 comments on commit ab40c9e

Please sign in to comment.