1.2.0 • Published 5 years ago

event-logger-loader v1.2.0

Weekly downloads
1
License
MIT
Repository
-
Last release
5 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

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago