1.2.0 • Published 6 years ago

event-logger-loader v1.2.0

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

za-burying-point-loader

A Vue.js project

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

For detailed explanation on how things work, consult the docs for vue-loader.

Vue 工程 webpack 引入 loader

{
  test: /\.vue$/,
  loader: 'event-logger-loader',
  exclude:/node_modules/
},
{
  test:/\.js$/,
  loader:'babel-loader',
  include:[/event-logger-loader/]
}

Vue 工程引入 plugin 文件

import Vue from 'vue'
import App from './App'
import router from './router'
import EventLog from 'event-logger-loader/plugins'

Vue.config.productionTip = false;

Vue.use(EventLog,{
  onEvent(e){
    // 自定义事件处理,默认可不配置
    console.log(e)
  }
})

new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: {App}
});
1.2.0

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago