0.1.0 • Published 4 years ago

postcss-sass-unicode v0.1.0

Weekly downloads
14
License
MIT
Repository
github
Last release
4 years ago

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.