Question Time
To clarify, when I mention 'without component', I am referring to my plugin being a custom Vue Directive that does not rely on a template. It acts as a wrapper for a class
, without the need for an additional component. However, I am open to using a component if necessary to include essential styles...
Let's take a look at the proposed file structure of the plugin:
src
│ index.js
│ SomeClass.js
│
└───sass // (unsure about this)
│ core.scss
index.js
sets up the Vue plugin and creates a custom directive that utilizes methods from theSomeClass
SomeClass.js
contains all the required functionalitysass/core.scss
holds any necessary styles needed for the plugin
So, my question is: How can I incorporate the core.scss
file once the Vue plugin is installed? Or, what would be a more effective file structure for including the required styles?
Ideally, I want to steer clear of using a template since there is no HTML insertion involved in my plugin; it simply applies styles to existing elements in the DOM.