optional css file
See original GitHub issuei 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:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
v2.6.0 done.
https://github.com/surmon-china/vue-awesome-swiper#vue-mount