gulp-cssimport | CSS file , finds imports | Plugin library
kandi X-RAY | gulp-cssimport Summary
kandi X-RAY | gulp-cssimport Summary
Parses a CSS file, finds imports, grabs the content of the linked file and replaces the import statement with it.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Read the contents of a stream .
- Determine if path matches a given path .
- Resolves the path to a file .
- Get the file extension of p .
- Checks if a string is a url
gulp-cssimport Key Features
gulp-cssimport Examples and Code Snippets
Community Discussions
Trending Discussions on gulp-cssimport
QUESTION
I'm studying GULP, and I want the page to update automatically when I modify the CSS.
...ANSWER
Answered 2019-Apr-19 at 16:20The problem was that I was trying to watch the old version of GULP, not version 4.0.0.
So I changed my code to work, and it looked like this:
QUESTION
This is the part in my gulpfile:
...ANSWER
Answered 2018-Jan-24 at 13:55Had similar issue with gulp-uglify, and as I've found out it seems that minifying async/await is not supported with base gulp-uglify
, so I switched to babel-minify, and it worked for me.
EDIT: For regeneratorRuntime is not defined
error, I think that regenerator-runtime could be helpful.
QUESTION
I'm new in a gulp, so I have this issue: I'm building my scss code with gulp-sass and everything was OK before, but now I need to add a third-party CSS file from my 'node_nodules' folder (colorbox.css file) and I've tried to add gulp-cssimport to my gulp-sass task like that:
...ANSWER
Answered 2018-May-23 at 18:42QUESTION
I'm new to Bower and I would like to use Gulp to handle CSS & JS loading and minification.
I've already solved (I hope) JS minification. But with CSS I found several problems, and not all of them I was able to solve:
- CSS files which are not found by
gulp-main-bower-files
plugin. For example CSS styles for jQuery UI. Solved bygulp-add-src
plugin. - Minimizing styles including
@import
command. Solved bygulp-cssimport
plugin. - Image paths in CSS file. Don't know how to solve it when I minimize all CSS into one style. When I minimize CSS with relative paths (for example
background: url('../images/bg1.jpg')
), minimized file has different location than original one, so path is not working. - Fonts paths in CSS file. Also don't know how to solve it. It's the same problem as above. For example with the result of Gulp task below, I'm not able to use Bootstrap icons.
My Gulp task for minify CSS looks like this:
...ANSWER
Answered 2017-Jul-02 at 09:34I finally figured it out!
gulp-clean-css is absolutelly briliant plugin which can handle all of this (both @import
and relative paths). It is just necesary to use first clean-css and THEN concat styles into one file (I did it opposite).
If anyone interested, I attach my entire gulpfile.js
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gulp-cssimport
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page