clean-css | Fast and efficient CSS optimizer for node.js and the Web | Runtime Evironment library
kandi X-RAY | clean-css Summary
kandi X-RAY | clean-css Summary
Fast and efficient CSS optimizer for node.js and the Web
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 clean-css
clean-css Key Features
clean-css Examples and Code Snippets
Community Discussions
Trending Discussions on clean-css
QUESTION
I'm new to Gulp
and trying to automate some tasks. Here's my environment setup: npm version: 8.1.0
, node version 17.0.1
, gulp CLI version 2.3.0
and gulp version 4.0.2
And here's my gulpfile.js
:
ANSWER
Answered 2021-Nov-15 at 01:42gulp-imagemin 8.0.0 and above are now ESM only. You can downgrade gulp-imagemin to 7.1.0 which is commonjs and it should work fine.
This package is now pure ESM. Please read this.
https://github.com/sindresorhus/gulp-imagemin/releases/tag/v8.0.0
QUESTION
I am currently deploying my Vue 3 project (with Laravel API Backend) and I am having some troubles with deploying.
What I am trying to do is, I used git-ftp to push my Vue project to production server and then I run npm install
and npm run build
to build the app. I am getting an error:
FATAL ERROR: MarkCompactCollector: young object promotion failed Allocation failed - JavaScript heap out of memory
I have read on some similar questions that one possible way was to use command with allocating more memory to Vue
npx --max_old_space_size=4095 vue-cli-service build --modern
however this produced the same error. These are my package.json dependencies (dev included)
...ANSWER
Answered 2022-Mar-03 at 14:51We have not been able to figure this out.
Instead we used the option of runner in GitLab, so that when we merge into develop/master the script runs automatically and:
- builds Vue project
- pushes the content folder to ftp while also renaming it to dist
QUESTION
I'm running into an error on Windows 10 whenever I try to run webpack, it works fine on macOS. This is the error
[webpack-cli] HookWebpackError: Not supported
It runs fine without "CopyPlugin", but I would like to copy img folder into dist folder. Have you experienced similar issues and how did you fix them?
...ANSWER
Answered 2022-Mar-02 at 02:37Your node version is lower than 12.20,Please select one of the schemes
1.Upgrade your node
npm install node@12.20.0 -g
Or the latest
npm install node@latest -g
Under Windows npm install node
may note work, and you should install the latest from https://nodejs.org/en/download/ using Windows Installer (.msi)
2.Reduce the version of copy-webpack-plugin
npm install copy-webpack-plugin@9 -D
QUESTION
Getting below error after installed latest node.js (v16.13.1)
Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (93) For more information on which environments are supported please see: https://github.com/sass/node-sass/releases/tag/v4.14.1 I have created static pages for my application and use sass and gulp
I have a static pages and using Sass in the page and use gulp to run on the browser.(npm install). Below are the version which worked my application:
- Node.js - 12.18.0
- gulp - "4.0.2"
- "gulp-sass": "4.1.0"
Package.json file
...ANSWER
Answered 2022-Jan-12 at 23:22gulp-sass 4.1.0 uses node-sass 4, and node-sass 4 does not support Node.js 16, as indicated in this table.
To support Node.js 16, upgrade gulp-sass: the latest version today is 5.1.0:
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
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
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install 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