Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Commit

Permalink
fix: drop unnecessary BreakyNuxt component
Browse files Browse the repository at this point in the history
buffalom committed Mar 24, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 41b30a1 commit f38449b
Showing 3 changed files with 5 additions and 23 deletions.
20 changes: 0 additions & 20 deletions lib/components/BreakyNuxt.vue

This file was deleted.

2 changes: 1 addition & 1 deletion lib/module.js
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ module.exports = function(moduleOptions) {
'components/CurrentScreenIcon.vue',
'assets/scss/mixins/color-scheme.scss',
]
const templates = ['components/BreakyNuxt.vue']
const templates = []

if (
options.enableInProd ||
6 changes: 4 additions & 2 deletions lib/plugin.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import Vue from 'vue'
import Breaky from './components/BreakyNuxt.vue'
import Breaky from '@teamnovu/vue-breaky-core'
import { theme } from '~tailwind.config'

const BreakyCtor = Vue.extend(Breaky)

// Nuxt module options are composed in here
// Nuxt module options are added in here
const options = <%= JSON.stringify(options, null, 2) %>;

export default async function () {
const instance = new BreakyCtor({
propsData: {
breakpoints: theme.screens,
startingPosition: options.position,
colorScheme: options.colorScheme
},

0 comments on commit f38449b

Please sign in to comment.