Last active
August 12, 2017 20:35
-
-
Save RedHatter/8eadc65bd5f8327f26dcfd10a7bf3dad to your computer and use it in GitHub Desktop.
This file contains hidden or 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> | |
<div>test</div> | |
</template> |
This file contains hidden or 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 Vue = require('vue/dist/vue.common.js') | |
let app = new Vue({ | |
el: '#mount', | |
components: { | |
Child: require('./child.vue') | |
} | |
}) |
This file contains hidden or 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
<html> | |
<head> | |
<title>Vue Test</title> | |
</head> | |
<body> | |
<div id="mount"> | |
<child></child> | |
</div> | |
<script src="bundle.js"></script> | |
</body> | |
</html> |
This file contains hidden or 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
{ | |
"name": "vue-webpack-test", | |
"version": "1.0.0", | |
"description": "Simpilest Vue.js Webpack configuration.", | |
"dependencies": { | |
"css-loader": "^0.28.4", | |
"vue": "^2.4.2", | |
"vue-loader": "^13.0.4", | |
"vue-template-compiler": "^2.4.2", | |
"webpack": "^3.5.4" | |
}, | |
"scripts": { | |
"compile": "webpack" | |
}, | |
"author": "Timothy Johnson", | |
"license": "GPL-3.0" | |
} |
This file contains hidden or 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
module.exports = { | |
entry: __dirname + '/display.js', | |
output: { | |
filename: 'bundle.js' | |
}, | |
module: { | |
rules: [ { test: /\.vue$/, loader: 'vue-loader' } ] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment