postcss-sass-unicode

0.1.0 • Public • Published

PostCSS Sass Unicode

PostCSS plugin for escape sass unicode characters.

scss

.foo {
    &:before{
      content:"\e949"
    }
}

css after sass

.foo {
    &:before{
      content:""
    }
}

css after postcss

.foo {
    &:before{
      content:"\e949"
    }
}

Usage

Check you project for existed PostCSS config: postcss.config.js in the project root, "postcss" section in package.json or postcss in bundle config.

If you already use PostCSS, add the plugin to plugins list:

module.exports = {
  plugins: [
+   require('postcss-sass-unicode'),
    require('autoprefixer')
  ]
}

If you do not use PostCSS, add it according to official docs and set this plugin in settings.

Package Sidebar

Install

npm i postcss-sass-unicode

Weekly Downloads

4,359

Version

0.1.0

License

MIT

Unpacked Size

4.74 kB

Total Files

9

Last publish

Collaborators

  • lcoronelp