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

How to use Vueify with styles in the node_modules directory #243

Open
JessicaSachs opened this issue Nov 11, 2018 · 0 comments
Open

How to use Vueify with styles in the node_modules directory #243

JessicaSachs opened this issue Nov 11, 2018 · 0 comments

Comments

@JessicaSachs
Copy link

I have some SFC .vue files that get compiled by Vueify... but for styles inside of my node_modules, my @import's are not being replaced with the contents of the modules I want to import. It works for local files just fine... My editor can find the file at the path that I'm navigating to, so I'm positive I haven't typo'd it.

We're running a really basic vueify setup and we don't have any custom configuration options setup.

Example code

<template>
<v-calendar></v-calendar>
</template>

<script>
const { Calendar } = require('v-calendar');
module.exports = {
    name: 'myComponent'
    components: { 'v-calendar': Calendar },
}
</script>

<style scoped>
@import 'v-calendar/lib/v-calendar.min.css'; // my editor resolves this with no problem... :/
</style>

I've tried:

  • Changing the style to be upscoped
  • adding "module" after style
  • absolute pathing from the current folder to my node_modules, and to that .css file.
  • creating a vue.config.js and adding 'node_modules' into the includePaths under "less" (after using lang="less")

Can someone add documentation or explain how to integrate with styles inside of node_modules? Thanks.

@JessicaSachs JessicaSachs changed the title Vueify and styles in the node_modules directory How to use Vueify with styles in the node_modules directory Nov 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant