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
const data = JSON.stringify({data:{myVar:'奶綠茶'},pretty:true}); | |
new HtmlWebpackPlugin({ | |
template: `!!html-loader!pug-html-loader${data}!./src/html/index.pug`, | |
filename: 'index.html', | |
chunks: ['app', 'vendor', 'manifest'], | |
}), |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.16/vue.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/vuex/3.0.1/vuex.min.js"></script> | |
</head> | |
<body> |
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
{ | |
test: /\.(styl|stylus)$/, | |
use: [ | |
{ | |
loader: 'vue-style-loader', | |
}, | |
{ | |
loader: 'css-loader', | |
options: { | |
sourceMap: true, |
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
var source$ = (function(Observable){ | |
var resize$ = Observable.fromEvent(window, 'resize') | |
.debounceTime(150) | |
.startWith(window) | |
.map(function(){ | |
return {innerWidth:window.innerWidth, innerHeight:window.innerHeight} | |
}); | |
var orientationChange$ = Observable.fromEvent(window, 'orientationchange') | |
.delay(650) |
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
// https://developers.google.com/apps-script/reference/spreadsheet/sheet | |
function getActiveSheet(id){ | |
var spreadSheet = SpreadsheetApp.openById(id); | |
var sheet = spreadSheet.getSheets()[0]; | |
return sheet; | |
} | |
function doGet(e) { | |
var param = e.parameter; | |
var id = param.id; |
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
doctype html | |
html | |
head | |
meta(charset='UTF-8') | |
title webpack 4 | |
if weinreScript | |
script(src=weinreScript) | |
body | |
h1#info milkmidi |
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
/** | |
* 本機開發用,點了可以直接開 vscode | |
*/ | |
interface Props { | |
path: string | |
} | |
export default { | |
name: 'DebugComponent', | |
functional: true, | |
props: { |