Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-sass-unicode

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-sass-unicode

This is to solve unicode issue with SASS.

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

grunt-sass-unicode

This is to solve unicode issue with SASS.

This is heavily inspired by gulp-sass-unicode, the only reason I do this is offering guys using grunt have a solution for the unicode issue with SASS.

Intend to solve

You might encounter an issue that you need to generate a css file with SASS and a custom font, and it turns into something like this:

content: "口";

when it should be something like this:

content: '\f101';

This plugin is just about replacing the broken characters inside content value with the correct ones.

Getting Started

This plugin requires Grunt ~0.4.5

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-sass-unicode --save-dev

or

yarn add -D grunt-sass-unicode

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-sass-unicode');

Usage Example with grunt-sass

This plugin follows files object format, where the property name is the destination file, and its value is the source.

grunt.initConfig({
  sass: {
    dist: {
      files: {
        './dist/main.css': './src/main.scss'
      }
    }
  },
  sassUnicode: {
    files: {
      './dist/main.css': './dist/main.css',
    },
  },
});

grunt.registerTask('default', ['sass', 'sassUnicode']);

Contributing

Lint and test your code before submitting your contribution.

License

MIT

Keywords

FAQs

Package last updated on 06 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc