💵 Vue AdFit 광고 컴포넌트
Vue로 손 쉽게 AdFit 광고를 넣어보자!
https://kyungw00k.github.io/vue-adfit-component/
npm install vue-adfit-component --save
import AdFit from 'vue-adfit-component'
Vue.use(AdFit.Banner)
<adfit-banner
v-on:ad-loaded
v-on:ad-failed
data-ad-test="Y"
data-ad-unit="DAN-Xxxxxxxx">
</adfit-banner>
Attribute | Type | Default | Description |
---|---|---|---|
class | String | adfit_ad_area |
|
style | String | display:block |
|
data-ad-unit | String | Attribute data-ad-unit from AdFit |
|
data-ad-test | String | N |
Attribute data-ad-test from AdFit |
Event | Description |
---|---|
ad-loaded | Attribute data-ad-load from AdFit |
ad-failed | Attribute data-ad-fail from AdFit |
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production demo with minification
npm run build
# build for plugin distribution file
npm run pack
# run build and pack
npm run dist
MIT