gulp-clean-css | Minify css with clean-css | Style Language library
kandi X-RAY | gulp-clean-css Summary
kandi X-RAY | gulp-clean-css Summary
Minify css with clean-css.
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-clean-css
gulp-clean-css Key Features
gulp-clean-css Examples and Code Snippets
var cleancss = require('gulp-clean-css');
var cleancss = require('clean-css');
npm install gulp-clean-css --save-dev
Community Discussions
Trending Discussions on gulp-clean-css
QUESTION
I have had to recently upgrade to gulp 4 and I found this error:
Did you forget to signal async completion?
My gulpfile looks as follows:
...ANSWER
Answered 2021-May-20 at 20:10This code is gulp v3 syntax:
QUESTION
The Problem
We're building a new application and have opted to go with a GULP and Webpack pipeline for compiling SCSS, Vue 3 and Typescript files. Unfortunately, I've spent the last day looking for an answer to a recursive issue where I fix one problem and it reverts back to the previous problem, fix that problem it reverts to the one I've already fixed and so on.
As part of pulling in vue-loader
an initial error is thrown stating vue-template-compiler
is a required dependency. Downloading the missing dependency fixes the issue but now a new error is thrown stating a version mismatch with Vue as they both need to be on the same version.
After looking around I'm aware vue-template-compiler
was replaced with @vue/compiler-sfc
in v3, so naturally I've uninstalled the former and installed the latter. However, it lead me right back to square one where it stated vue-template-compiler
needs installing or to specify a compatible compiler via the options.
I've looked at various questions and answers on specifing the compiler in webpack.config
but constantly got lead back to stuff I'd viewed.
Attempted Solutions
Vue 3 Problem with Vue Template Webpack for Vue 3 Vue 3 Supporting Typescript
Error One
...ANSWER
Answered 2021-May-05 at 10:52Just as I was about to post this question I figured out the problem. Essentially the vue-loader
version is incorrect and answering this so another developer doesn't spend hours looking for an answer.
Early on in building the frontend structure for the application I hit an issue where the latest version of Vue in NPM is v2.6.12 and the next version is v3.0.11. Simple enough to resolve just specify the version.
Turns out it's the same issue with vue-loader
and at the time of writing the latest version is v15.9.6 whilst the next version is v16.2.0. As you'll note from the included package.json
file, the version specified is v15.9.6.
For Vue 3 to work alongside vue-loader
it's imperative that the version installed is not below '16.2.0'.
QUESTION
I want to install a list of packages from a simple text file (yes, package.json is what this was designed for)
my first approach was this:
npm i $(cat builder-dev-packages.txt) -g
similar to this: docker rm $(docker ps -a -f status=exited -q)
But I'm still getting that command evaluated as an invalid tag name.
npm ERR! code EINVALIDTAGNAME ": Tags may not have any characters that encodeURIComponent encodes.
Do I need to run through my npm command with a while loop instead of evaluating the output of a cat
statement? This script still provides the same error for each line in the txt file.
ANSWER
Answered 2021-Feb-26 at 19:54npm install
accept a list of packages delimited by space, but you are passing it a list of packages delimited with new line, this is why you experience issues.
try the following
QUESTION
So the problem I am facing is that some packages in my package.json
file required node
version greater than 10
. So I have nvm
package installed to manage node
versions and when I do node -v
it gives me this: v12.19.0
. So if the node version is 12.19.0
then the error shouldn't come but I think this is a global version of node so when I do npm
update, this comes up:
ANSWER
Answered 2021-Feb-22 at 07:15I believe that's the problem is in your package.json
simply run npm install
and it should work.
QUESTION
I'm new to gulp
tasks. I'm practicing it now. After some googling I learned to write few tasks. I'm using tailwind
and bulma
css in my project.
Here is my setup.
package.json
:
ANSWER
Answered 2020-Nov-29 at 19:07After some googling and research, here is how I fixed it.
added gulp-sass
by doing npm install gulp-sass
and piped gulp-sass
in my gulp task.
Here is my final working setup,
package.json
:
QUESTION
New to gulp, everything is installed and it runs properly
gulp --version CLI version: 2.3.0 Local version: 4.0.2
when I change my scss file, nothing at all happens.. gulp is happily running in terminal
...ANSWER
Answered 2020-Nov-20 at 19:34You need to tell gulp what function to run when it detects a change. So try this instead:
QUESTION
So, I am new to js development. What I am trying to do is to set up a basic environment to study and to be kind of a bootstrap, with gulp tasks and so on.
I'm stuck in this error thrown in the terminal:
...ANSWER
Answered 2020-Oct-01 at 04:46you don't seem to have a gulp run script in your package.json also you want to remove "type": "module" from package.json which is causing the issue with require/esm.
here are my edits to your package.json file
QUESTION
i'm totaly new to node.js and code in general. I tried a simple conversion of SCSS to CSS with gulp , my gulpfile.js seems to be correct, somehow when i try to execute "gulp styles" in the node.js command prompt i get this :
`
...ANSWER
Answered 2020-Sep-02 at 14:29There's a typo here in the word "projet":
C:\Users\33666\Downloads\projet gulp>gulp styles
QUESTION
I have bought template MaterialPro from wrappixel website. After I got the template package already, I have followed getting started installation from document attached with template as the following:
- Install Node.js From https://nodejs.org/en/download/
- Open terminal navigating to
material-pro/
- Install npm:
npm install --global npm@latest
- Install yarn:
npm install --global yarn
- Install gulp:
npm install --global gulp-cli
- Copy gulp:
gulp copy
The gulpfile.js
inside root template is like this:
ANSWER
Answered 2020-Aug-16 at 16:34Your gulp code is fine. Made some change on your scss or js file it will show some changes.
Exaplantion
- Your default command is
gulp.task('default', watch);
- when you run
gulp
it starts to watch your scss, css, js code. If there is new change it will execute the command.
Suggestion. Use like this.
QUESTION
I have a bit of a strange issue that I'm hoping I can get some help with.
I've got a WordPress theme that I've been developing using a dev setup including gulp & babel. I have a hosting provider with a development environment, and production environment. Up until now, I have had no issues building the theme, uploading it to the dev environment and testing it - it's all been pretty smooth.
Now I'm trying to upload the same theme (I'm talking exactly the same), to the production site, instead of the development site, and I get the following error in the console:
...ANSWER
Answered 2020-Jul-16 at 10:18For anyone who stumbles across this issue in the future (probably unlikely).
It turns out the culprit was the CDN being used in our production environment. I figured out that the bundle.js file I was uploading wasn't the same as was being served up in the site, and turned the CDN off which seemed to fix the issue. :/
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gulp-clean-css
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