question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

optional css file

See original GitHub issue

i think css file should be optional

https://github.com/surmon-china/vue-awesome-swiper/blob/master/swiper.vue#L18

because i have custom css in my template files and this is sick problem.

i think this line should be deleted and optional

Use Setup

Install vue-awesome-swiper

npm install vue-awesome-swiper --save

Vue mount

// import
import Vue from 'vue'
import VueAwesomeSwiper from 'vue-awesome-swiper'


// or require
var Vue = require('vue')
var VueAwesomeSwiper = require('vue-awesome-swiper')

//add global swiper css file if you need
require('swiper/dist/css/swiper.css')

// mount with global
Vue.use(VueAwesomeSwiper)


I can make a pull request if you think my approach is fine for you.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
metekabakcommented, Aug 2, 2017

I think this is not “the right way”, If any swiper component setted true will override the css entirely. We should handle this at the beginning while importing the package.

Read more comments on GitHub >

github_iconTop Results From Across the Web

optional - CSS: Cascading Style Sheets - MDN Web Docs
The :optional CSS pseudo-class represents any , , or element that does not have the required attribute set on it.
Read more >
External CSS Stylesheets – How to Link CSS to HTML and ...
It's an optional attribute that you can use to specify when to import a certain stylesheet. Its value must be a media type...
Read more >
Linking to an External Style Sheet - HTML Help
The <LINK> tag is placed in the document HEAD. The optional TYPE attribute is used to specify a media type--text/css for a Cascading...
Read more >
Style Sheets in HTML documents - W3C
14.3.1 Preferred and alternate style sheets ... HTML allows authors to associate any number of external style sheets with a document. The style...
Read more >
Create, edit, and attach CSS files to style your site
Once you have created or opened an existing CSS file, make your edits in ... Please note: this option isn't available for theme...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found