mirror of
https://github.com/feathericons/feather.git
synced 2023-08-10 21:13:24 +03:00
Set up vie-loader
This commit is contained in:
parent
9ce3c68a9b
commit
2f70a91dce
137
bundle.js
137
bundle.js
@ -63,13 +63,47 @@
|
||||
/******/ __webpack_require__.p = "";
|
||||
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 3);
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 7);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ([
|
||||
/* 0 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
var Component = __webpack_require__(3)(
|
||||
/* script */
|
||||
__webpack_require__(2),
|
||||
/* template */
|
||||
__webpack_require__(4),
|
||||
/* scopeId */
|
||||
null,
|
||||
/* cssModules */
|
||||
null
|
||||
)
|
||||
Component.options.__file = "/Volumes/Mozart/Users/colebemis/Dropbox (Personal)/projects/feather/src/App.vue"
|
||||
if (Component.esModule && Object.keys(Component.esModule).some(function (key) {return key !== "default" && key !== "__esModule"})) {console.error("named exports are not supported in *.vue files.")}
|
||||
if (Component.options.functional) {console.error("[vue-loader] App.vue: functional components are not supported with templates, they should use render functions.")}
|
||||
|
||||
/* hot reload */
|
||||
if (false) {(function () {
|
||||
var hotAPI = require("vue-loader/node_modules/vue-hot-reload-api")
|
||||
hotAPI.install(require("vue"), false)
|
||||
if (!hotAPI.compatible) return
|
||||
module.hot.accept()
|
||||
if (!module.hot.data) {
|
||||
hotAPI.createRecord("data-v-2b117b3b", Component.options)
|
||||
} else {
|
||||
hotAPI.reload("data-v-2b117b3b", Component.options)
|
||||
}
|
||||
})()}
|
||||
|
||||
module.exports = Component.exports
|
||||
|
||||
|
||||
/***/ }),
|
||||
/* 1 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* WEBPACK VAR INJECTION */(function(process, global) {/*!
|
||||
* Vue.js v2.1.10
|
||||
@ -8640,10 +8674,93 @@ Vue$3.compile = compileToFunctions;
|
||||
|
||||
module.exports = Vue$3;
|
||||
|
||||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2), __webpack_require__(1)))
|
||||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(6), __webpack_require__(5)))
|
||||
|
||||
/***/ }),
|
||||
/* 1 */
|
||||
/* 2 */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
/* harmony default export */ __webpack_exports__["default"] = {
|
||||
name: 'App'
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
/* 3 */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = function normalizeComponent (
|
||||
rawScriptExports,
|
||||
compiledTemplate,
|
||||
scopeId,
|
||||
cssModules
|
||||
) {
|
||||
var esModule
|
||||
var scriptExports = rawScriptExports = rawScriptExports || {}
|
||||
|
||||
// ES6 modules interop
|
||||
var type = typeof rawScriptExports.default
|
||||
if (type === 'object' || type === 'function') {
|
||||
esModule = rawScriptExports
|
||||
scriptExports = rawScriptExports.default
|
||||
}
|
||||
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (compiledTemplate) {
|
||||
options.render = compiledTemplate.render
|
||||
options.staticRenderFns = compiledTemplate.staticRenderFns
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = scopeId
|
||||
}
|
||||
|
||||
// inject cssModules
|
||||
if (cssModules) {
|
||||
var computed = options.computed || (options.computed = {})
|
||||
Object.keys(cssModules).forEach(function (key) {
|
||||
var module = cssModules[key]
|
||||
computed[key] = function () { return module }
|
||||
})
|
||||
}
|
||||
|
||||
return {
|
||||
esModule: esModule,
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
/* 4 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
|
||||
return _c('div', [_vm._v("Hello World")])
|
||||
},staticRenderFns: []}
|
||||
module.exports.render._withStripped = true
|
||||
if (false) {
|
||||
module.hot.accept()
|
||||
if (module.hot.data) {
|
||||
require("vue-loader/node_modules/vue-hot-reload-api").rerender("data-v-2b117b3b", module.exports)
|
||||
}
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
/* 5 */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
var g;
|
||||
@ -8670,7 +8787,7 @@ module.exports = g;
|
||||
|
||||
|
||||
/***/ }),
|
||||
/* 2 */
|
||||
/* 6 */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
// shim for using process in browser
|
||||
@ -8856,17 +8973,19 @@ process.umask = function() { return 0; };
|
||||
|
||||
|
||||
/***/ }),
|
||||
/* 3 */
|
||||
/* 7 */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
||||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(0);
|
||||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1);
|
||||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__);
|
||||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__App__ = __webpack_require__(0);
|
||||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__App___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__App__);
|
||||
|
||||
|
||||
|
||||
var data = {
|
||||
message: 'Hello',
|
||||
icons: ['square', 'circle', 'rectangle-vertical', 'rectangle-horizontal']
|
||||
};
|
||||
|
||||
@ -8917,7 +9036,9 @@ var data = {
|
||||
|
||||
new __WEBPACK_IMPORTED_MODULE_0_vue___default.a({
|
||||
el: '#app',
|
||||
data: data
|
||||
data: data,
|
||||
components: { App: __WEBPACK_IMPORTED_MODULE_1__App___default.a },
|
||||
template: '<app/>'
|
||||
});
|
||||
|
||||
/***/ })
|
||||
|
@ -5,7 +5,10 @@
|
||||
"babel-core": "^6.22.1",
|
||||
"babel-loader": "^6.2.10",
|
||||
"babel-preset-es2015": "^6.22.0",
|
||||
"css-loader": "^0.26.1",
|
||||
"vue": "^2.1.10",
|
||||
"vue-loader": "^10.1.2",
|
||||
"vue-template-compiler": "^2.1.10",
|
||||
"webpack": "^2.2.0"
|
||||
}
|
||||
}
|
||||
|
9
src/App.vue
Normal file
9
src/App.vue
Normal file
@ -0,0 +1,9 @@
|
||||
<template>
|
||||
<div>Hello World</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'App'
|
||||
}
|
||||
</script>
|
@ -1,4 +1,5 @@
|
||||
import Vue from 'vue';
|
||||
import App from './App';
|
||||
|
||||
const data = {
|
||||
icons: [
|
||||
@ -56,5 +57,7 @@ const data = {
|
||||
|
||||
new Vue({
|
||||
el: '#app',
|
||||
data: data
|
||||
data: data,
|
||||
components: {App},
|
||||
template: '<app/>'
|
||||
});
|
@ -8,6 +8,10 @@ module.exports = {
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.vue$/,
|
||||
loader: 'vue-loader'
|
||||
},
|
||||
{
|
||||
test: /\.js$/,
|
||||
loader: 'babel-loader',
|
||||
@ -16,6 +20,7 @@ module.exports = {
|
||||
]
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['*', '.js', '.vue'],
|
||||
alias: {
|
||||
'vue$': 'vue/dist/vue.common.js'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user