gulp-cssnano | DEPRECATED , see https : //github.com/cssnano/cssnano | Style Language library
kandi X-RAY | gulp-cssnano Summary
kandi X-RAY | gulp-cssnano Summary
Minify CSS with cssnano.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gulp-cssnano
gulp-cssnano Key Features
gulp-cssnano Examples and Code Snippets
Community Discussions
Trending Discussions on gulp-cssnano
QUESTION
After changing gulp 3 to 4 I receive the error when I try to run gulp build
:
ANSWER
Answered 2021-Nov-29 at 16:38In copy:css
you have this line:
paths.src.base + '/assets/css/argon.css'
where apparently your error is. The problem is your paths.src.base
is defined as
base: './'
to which you are adding /assets/css/argon.css
so you end up with
.//assets/css/argon.css
note the two leading backslashes.
Get rid of the leading backslash in the /assets/...
and check the rest of your code for the same problem.
Also since you are using gulp4 get rid of runSequence
- look at the documentation for gulp.series
.
QUESTION
Just went back to a very old project and updated to Gulp 4.0.2.
Managed to get it watching and compiling css, but doesn't seem to watch changes to the JavaScript files?
It doesn't throw any errors, just doesn't compile the JS when I make a change.
(I'm a designer and my JS is terrible, so you might have to really spell it out for me 😬)
gulpfile.js
...ANSWER
Answered 2021-Jan-05 at 09:24paths.scripts.src + '/*.js'
and paths.vendor.src + '/*.js'
contained an extra /
Thanks to Thomas Sablik
QUESTION
Below is my gulpfile. I am trying to generate minified css from scss and then rename it using gulp-rev. Running gulp clean:assets then gulp scss then gulp css works perfectly. But running gulp build does not do the task. The minified css gets stored in ./assets/css but the renamed css is not getting stored in ./public/assets
...ANSWER
Answered 2020-May-09 at 13:44gulp.task('scss', ()=> {
return new Promise((resolve, reject) => {
return gulp.src('./assets/scss/**/*.scss')
.pipe(sass())
.pipe(cssnano())
.pipe(gulp.dest('./assets/css'))
.on('end', resolve)
.on('error', reject);
});
});
QUESTION
I'm new to Gulp, and it's hard for me to read the gulpfile.js
file.
Here is my devDependencies
in package.json
:
ANSWER
Answered 2020-Jan-27 at 19:18Will the dist folder contain the vulnerabilities of the related vulnerabilities in devDependencies
No, it won't.
The vulnerabilities are in files required by the gulp-cssnano
package, not in its generated output (i.e. the contents of the dist
folder). These vulnerable files reside in the node_modules
folder and in your case, they won't touch the production environment, so you should be good to go.
Hooowever, I noticed that the gulp-cssnano
package has been archived by its owner on GitHub and marked as deprecated, so you should probably look for an alternative.
QUESTION
I am attempting to move a Three.js project to TypeScript. When I tried top compile it I would get an error referenced in this issue on the Three.js repo:
https://github.com/mrdoob/three.js/issues/17698
Following those steps I installed @types/offscreencanvas
as well as edited my tsconfig.json, but now I get this output when trying to run tsc
:
ANSWER
Answered 2020-Jan-16 at 09:02As per my comment to your question
This seems to be a TypeScript version problem, but the version in your package.json
seems to be correct. Have you tried to run this from a script
within your package.json
, in stead of through your terminal?
QUESTION
I'm just starting out with Gulp but I can't seem to get it working. When I just run the regular sass command everything compiles just fine.
Here is my Gulp file:
...ANSWER
Answered 2020-Jan-14 at 12:13Is your _base.scss
file imported into your main.scss
file? Gulp can't find your mixin. To make sure your partials are imported in the proper order, I'd recommend using a main.scss
file and gulping over that file.
For a great sass boilerplate based on the 7-1 architecture pattern: https://github.com/HugoGiraudel/sass-boilerplate
More specifically the main.scss
file:
https://github.com/HugoGiraudel/sass-boilerplate/blob/master/stylesheets/main.scss
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gulp-cssnano
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