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
'use strict'; | |
var through = require('through2'); | |
var PluginError = require('gulp-util').PluginError; | |
var reTemplate = /<template>([\s\S]+)<\/template>/i; | |
var reScript = /<script>([\s\S]+)<\/script>/i; | |
var reNewLine = /[\n\r\t]+/g; | |
var reComponent = /Vue\.component\([\s]*[\'\"\`]{1}[\w-]+[\'\"\`]{1},[\s]*\{/; | |
var reInstance = /new[\s]+Vue[\s]*\([\s\n\r]*\{/; |
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
"devDependencies": { | |
"babel-core": "^6.0.0", | |
"babel-loader": "^6.0.0", | |
"babel-plugin-transform-runtime": "^6.15.0", | |
"babel-preset-es2015": "^6.13.2", | |
"css-loader": "^0.23.1", | |
"request": "^2.74.0", | |
"style-loader": "^0.13.1", | |
"vue-loader": "^9.2.2", | |
"vue-html-loader": "^1.2.3", |
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
<script> | |
'use strict' | |
const VkInput = { | |
data() { | |
return { | |
} | |
}, |