Feature | vue-loader | vueify | rollup-plugin-vue |
---|---|---|---|
Support for Vue 1.x | Version 8.x | Version 8.x | Version 2.x |
Support for Vue 2.0 | Version 9.0+ | Version 9.0+ | Version 2.x |
ES2015 | With buble-loader or babel-loader |
Preconfigured to use babel |
With rollup-plugin-buble or rollup-plugin-babel |
Scoped CSS | ✓ | ✓ | - |
CSS Modules | ✓ | ✓ | - |
PostCSS | ✓ | ✓ | - |
Hot Reload | ✓ | ✓ |
I hereby claim:
- I am znck on github.
- I am znck (https://keybase.io/znck) on keybase.
- I have a public key whose fingerprint is 4960 41D2 4381 8206 D62C C2DF 21AF 5D4A 08BA 995B
To claim this, I am signing this object:
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
// ----- Extracting Chunks ----- | |
exports.entry['vendor/vue'] = ['vue', 'vuex', 'vue-resource', 'vue-router'] | |
exports.entry['vendor/bootstrap'] = ['jquery', 'bootstrap', 'tether'] | |
exports.entry['vendor/components'] = ['bootstrap-for-vue'] | |
exports.entry['vendor/plugins'] = ['moment', 'sifter'] | |
exports.entry['vendor/echo'] = ['pusher-js', 'laravel-echo', 'echo-for-vue'] | |
exports.plugins.push( | |
new webpack.optimize.CommonsChunkPlugin({ | |
name: '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> | |
<style id="jsbin-css"> | |
.group { | |
display: block; | |
margin: 0 15px 15px; |
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
function aliasthat { | |
if [ -n ${1} ]; then | |
fc -e "sed -i -e \"s/^.*/echo alias $1=\\\"'\\\"\'&\'\\\"'\\\" >> ~\/.bash_alias/\"" | |
. ~/.bash_alias | |
fi | |
} |
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
<template> | |
<h2 class="red">{{msg}}</h2> | |
</template> | |
<script> | |
export default { | |
data () { | |
return { | |
msg: 'Hello from Component A!' | |
} |
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
import { mount } from 'vue-test-utils' | |
import { createRenderer } from 'vue-server-renderer' | |
import MyComponent from './MyComponent.vue' | |
const renderer = createRenderer() | |
renderer.renderToString( | |
mount(MyComponent).vm, | |
(error, 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
Create a module for vue component. |
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
import {promisify, CustomPromisify} from 'util' | |
export type FunctionProxy<T extends Function> = CustomPromisify<T> | |
export type PackageProxy<P extends { [key: string]: Function }> = { | |
[K in keyof P]: FunctionProxy<P[K]> | |
} | |
export function promised<T extends { [key: string]: Function | any }>(target: T): PackageProxy<T> { |