grunt-sass | Compile Sass to CSS | Style Language library
kandi X-RAY | grunt-sass Summary
kandi X-RAY | grunt-sass Summary
Compile Sass to CSS
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Renders the Sass implementation
grunt-sass Key Features
grunt-sass Examples and Code Snippets
Community Discussions
Trending Discussions on grunt-sass
QUESTION
I'm having an issue with running a grunt copy task. I've a library specified in package.json under dependencies as below
...ANSWER
Answered 2019-Dec-30 at 19:40The dest
value for both the autoCompleteJS
and autoCompleteCSS
Targets in your copy
Task should be a String and not an Array.
QUESTION
I have a simple Visual Studio solution, running ASP.NET Core v2 and building a React app.
Now, I want to install a simple component using the NPM. In this particular example, it could be:
...ANSWER
Answered 2018-Mar-13 at 19:19- In Window's Explorer, navigate to where the
package.json
file is located in your project. - Create a folder named
node_modules
in the same directory as yourpackage.json
file - While holding the left
[Shift]
key, right click in the folder containing theproject.json
file. - From the context menu select 'Open command window here'.
- Input your npm command
npm install --save react-bootstrap-typeahead
QUESTION
I have very strange error with grunt. For some reason after some time in our CI system, this task start to fail. May be someone faced with same issue?
When I run grunt assemble:site it outputs:
...ANSWER
Answered 2019-Dec-05 at 07:11Here was some problem with the package itself. More info here.
QUESTION
My package.json file looks like this:
...ANSWER
Answered 2019-Sep-09 at 13:21Meanwhile I have solved this by using: https://www.npmjs.com/package/grunt-contrib-copy
With this module you can copy required files to your project directory:
QUESTION
I want to replace few sass variable values inside a sass config file. For example, I want to replace the value of variable "$file_global" = "new";
I want to use "grunt-sass-replace" package to do the work, i tried alot but its giving me various errors.
My Project Directory Structure:
...ANSWER
Answered 2019-May-19 at 10:37This package was last updated 3 years ago, also it uses grunt ~0.4.5. I can't help you with this, However checkout "grunt-sass-replace-values" from https://www.npmjs.com/package/grunt-sass-replace-values. This package is updated a year ago and patched.
npm install grunt-sass-replace-values --save-dev
Check out following issue on Github: https://github.com/eliranmal/grunt-sass-replace/issues/1
Explanation :
Cause of errors :
You defined sass variable incorrectly. Variables should be defined as "$variable: value;" and not like "$variable = value;"
As of the Github issue with this package, you need to update the path to your "grunt-string-replace" dependency.
Solution :
Under your project root folder, Go to below directory:
QUESTION
I am trying to compile my scss files using susy, node-sass, grunt-sass I added all these dependencies using npm install. I am adding the setup for grunt like
...ANSWER
Answered 2019-Mar-08 at 17:32The latest versions of Susy (3.x) do not include any mixins. In order to use the old mixins, you will have to downgrade to a 2.x version of Susy (2.2.14 is the latest). Or check out the docs to get started with Susy 3.
I'm not sure if there are any other issues in the setup as well…
QUESTION
I have CSS source maps enabled, but Google Chrome is behaving like they are disabled. In all the resources I've looked at, all I should need to do is enable source maps in DevTools preferences. It is clearly enabled there:
The source maps reside alongside my CCS files, like so:
In DevTools > Elements > Styles, there are only CSS files, no SCSS or SASS:
Here is my grunt-contrib-sass config in Gruntfile.js:
...ANSWER
Answered 2018-Oct-29 at 19:04After seeing your responses in comments. I am adding this as an answer
The reason why your sourcemap doesn't load is due to the fact that you are using grunt-contrib-sass with dart sass.
Dart-sass is a recent rewrite of ruby sass. Grunt-contrib-sass is developed to work with the Ruby sass.
So I recommend you to uninstall sass. And do a gem install of ruby sass. Or change the syntax of sass configs to the new configs https://www.npmjs.com/package/sass. But I am not sure that will work with the current set up. So the former solution is recommended.
Source map requirements for grunt contrib can be found here https://github.com/gruntjs/grunt-contrib-sass#sourcemap
QUESTION
I'm trying to convert my sass file to css using gruntjs. This is my Gruntfile.js :
...ANSWER
Answered 2018-Nov-26 at 04:15QUESTION
I have a problem with sass-lint, in theory I should not compile grunt if there are errors in SASS LINT
I'm setting my entry wrong?
...ANSWER
Answered 2018-Aug-23 at 17:26Set the sass lint to level 2 (importance level) so that it throws an error in the grunt, for example:
QUESTION
I am trying to suppress/fix a deprecated warning from my grunt-sass (based on node-sass) compile that I traced to Susy 2 using functions listed to deprecate in Sass 4.0. At this point, it's not feasible to upgrade to Susy 3 as there's no upgrade guide and will break a large website.
Node-sass offers a --quiet
option that I've passed in my Gruntfile.js
though I am still getting the warning. This is my SASS section in my Gruntfile.js
.
ANSWER
Answered 2018-Aug-15 at 15:42Version 2.2.14 was specifically released to solve this problem. I tried to reproduce this locally in 2.2.14, but I'm not able to. I do get the warning when I write an improper call()
- but I'm not able to get the same warning from Susy. Are you sure the version of Susy being used is the version in npm?
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install grunt-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