Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ab40c9e

Browse files
committed
add build tag: debug
to switch produce|dev version of VueJS
1 parent 2ff578c commit ab40c9e

File tree

7 files changed

+8595
-0
lines changed

7 files changed

+8595
-0
lines changed

‎README.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ These are the basic rules to use this package:
2222
should have an anonymous embeded `*js.Object` field and the `exported fields`
2323
should have proper `js struct tag` for bidirectionaly data bindings
2424

25+
# Using the debug|dev version of VueJS
26+
27+
This package includes the `minified|product version` of VueJS code by default,
28+
if you want to include the `debug|dev version` of of VueJS code, please specify
29+
buidling tags `debug` to the `gopherjs build` cmd as this:
30+
31+
gopherjs build --tags debug main.go
2532

2633
for more details please see the examples.
2734

‎inc_debug.go‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
//+build debug
2+
3+
package vue
4+
5+
import _ "github.com/oskca/gopherjs-vue/jscode/debug"

‎inc_minified.go‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
//+build !debug
2+
3+
package vue
4+
5+
import _ "github.com/oskca/gopherjs-vue/jscode/minified"

‎jscode/debug/inc.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package debug

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /