forked from Tencent/vConsole
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Maiz
committed
Jul 4, 2019
1 parent
3377ae8
commit 874d6d8
Showing
5 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, viewport-fit=cover"> | ||
<title>Test: Log</title> | ||
<link href="../../example/lib/weui.min.css" rel="stylesheet"/> | ||
<link href="../../example/lib/demo.css" rel="stylesheet"/> | ||
|
||
<script src="../../example/lib/zepto.min.js"></script> | ||
<script src="../../example/lib/zepto.touch.min.js"></script> | ||
|
||
</head> | ||
<body ontouchstart> | ||
<div id="app"> | ||
{{ msg }} | ||
</div> | ||
<script src="./index.dist.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import Vue from './vue.min.js' | ||
import VConsole from '../../dist/vconsole.min.js'; | ||
|
||
new Vue({ | ||
el: '#app', | ||
data() { | ||
return { | ||
msg: 'Hello vConsole for test.' | ||
}; | ||
}, | ||
mounted() { | ||
new VConsole(); | ||
console.log('Hello vConsole for test.'); | ||
} | ||
}); | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
var Path = require('path'); | ||
var Webpack = require('webpack'); | ||
|
||
module.exports = { | ||
mode: 'production', | ||
// devtool: false, | ||
entry: { | ||
index : Path.resolve(__dirname, './index.js') | ||
}, | ||
output: { | ||
path: Path.resolve(__dirname, './'), | ||
filename: '[name].dist.js', | ||
}, | ||
module: { | ||
rules: [ | ||
] | ||
}, | ||
stats: { | ||
colors: true, | ||
}, | ||
plugins: [ | ||
new Webpack.SourceMapDevToolPlugin() | ||
] | ||
}; |