gulp-sass | SASS plugin for gulp | Style Language library
kandi X-RAY | gulp-sass Summary
kandi X-RAY | gulp-sass Summary
To use gulp-sass, you must install both gulp-sass itself and a Sass compiler. gulp-sass supports both Dart Sass and Node Sass, although Node Sass is deprecated. We recommend that you use Dart Sass for new projects, and migrate Node Sass projects to Dart Sass when possible.
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-sass
gulp-sass Key Features
gulp-sass Examples and Code Snippets
Community Discussions
Trending Discussions on gulp-sass
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 trying to run a gulp task but when I go to Terminal > Run Task... > gulp
it says No gulp task found
. I run gulp
in the terminal and I get the title's error.
which sass
: /home/username/.nvm/versions/node/v17.4.0/bin/sass
.
which node
: /home/username/.nvm/versions/node/v17.4.0/bin/node
.
which gulp
: /home/username/.nvm/versions/node/v17.4.0/bin/gulp
.
Gulp version:
...ANSWER
Answered 2022-Feb-11 at 20:02I fixed the problem by adding npm i --save-dev sass
.
QUESTION
I tried to run the gulp to covert SCSS to CSS,the gulp is working wihout any error but there aren't have any css files output to the target folder, I also tried to change the output path but it still didn't work,and my code is below :
...ANSWER
Answered 2022-Feb-11 at 17:24In your watchTask
you have this:
src/**/*.+(scss|sass)
note the +
sign before the alternation.
But in your styleLink
variable you have:
QUESTION
Here i am trying to migrate my existing site which is using gulp 3. Now upgrading gulp from 3 to 4.
Below is Gulpfile.js
...ANSWER
Answered 2022-Jan-28 at 21:00Try defining your "sprite"
task before it gets called in the "local-development"
task (and any others that may fall into the same pattern).
When creating tasks via the gulp.task(...)
form you do need to have those tasks created (so they can be registered) prior to their being called. Otherwise you will forward-referencing them.
Forward referencesA forward reference is when you compose tasks, using string references, that haven't been registered yet. This was a common practice in older versions, but this feature was removed to achieve faster task runtime and promote the use of named functions.
In newer versions, you'll get an error, with the message "Task never defined", if you try to use forward references.
One advantage of the function myGulpTask() {...}
form of creating tasks is that do not need to be declared prior to calling them.
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
I can't seem to figure out what is causing this error, so I will go into more detail below on what I have done and if anyone can spot anything off, let me know.
Here is the error that I am getting:
Uncaught SyntaxError: Cannot use import statement outside a module
Here is everything that I have done:
Here is the package.json
:
ANSWER
Answered 2022-Jan-10 at 06:32I believe that you don't need to import separate parts of the Swiper if you are using the bundled build of Swiper. So, just try the same code without import statements and Swiper.use statement.
Also, don't forget that in the default initialization, it might be helpful to enqueue the Swiper style file to have a default appearance.
If you want to use only the required parts of Swiper, you should include the source file in your source files, not just enqueueing the already built file that is located in the Generatepress.
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 am trying to run gulp and save compiled file to artifacts, but i cant make it work.
my gulp file works fine on local..
...ANSWER
Answered 2021-Nov-24 at 18:29gulp
is not placing its output files relative to your working directory. It will place output files as configured in your gulpfile. When the build starts, gulp is changing the working directory back to the project root:
[19:19:04] Working directory changed to /builds/stefan_avramovic/nodejs-code-build
[19:19:04] Using gulpfile /builds/stefan_avramovic/nodejs-code-build/gulpfile.js
Thus, as according to your target
configurations, your outputs will be placed in the dist
and public
directories, relative to the project root, not my-build
-- the dest
paths are going to be defined the same way gulp is finding your src
files using the defined relative paths.
To fix this you could:
- change the directory you artifact to your
dist
/public
directories, as gulp is currently using - change your gulp config -- use a different target of
my-build
or setcwd
accordingly in your gulp dest options - move the target directories after the build is finished (e.g.
mv $CI_PROJECT_DIR/dist $CI_PROJECT_DIR/my-build
)
QUESTION
Recently started learning imports and faced the following problem
After installing the package in gulpfile
, you need to make the following entry:
ANSWER
Answered 2021-Nov-24 at 21:55I would import from 'sass' with a different name, and construct sass
per function call, just like when using require
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gulp-sass
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