npm add ../sc-component-lib/
symlinks im webpack deaktivieren
module.exports = {
chainWebpack: config => config.resolve.set('symlinks', false)
}
Code-Beispiel in Vue-Native-App zur Verwendung
<template>
<div id="app">
<img alt="Vue logo" src="./assets/logo.png">
<custom-button />
</div>
</template>
<script>
import CustomButton from 'sc-component-lib'
export default {
name: 'app',
components: {
CustomButton
}
}
</script>
Compiles and hot-reloads for development
Compiles and minifies for production
See Configuration Reference.