# grapesjs-parser-postcss

> Custom CSS parser via PostCSS for GrapesJS

Latest version **1.0.3** (published 2023-10-07) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install grapesjs-parser-postcss
pnpm add grapesjs-parser-postcss
yarn add grapesjs-parser-postcss
bun add grapesjs-parser-postcss
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2023-10-07 |
| First published | 2018-09-20 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 240.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Artur Arseniev |
| Maintainers | artf |
| Keywords | grapesjs, plugin, parser, css, postcss, wysiwyg |

## Links

- npm: https://www.npmjs.com/package/grapesjs-parser-postcss
- Repository: https://github.com/GrapesJS/parser-postcss
- Homepage: https://github.com/GrapesJS/parser-postcss#readme
- Issues: https://github.com/GrapesJS/parser-postcss/issues
- npm.io page: https://npm.io/package/grapesjs-parser-postcss

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2023-10-07
- 1.0.1 — 2022-08-02
- 0.1.1 — 2018-09-20

## README

# GrapesJS Parser PostCSS

This plugin enables custom CSS parser via [PostCSS](https://github.com/postcss/postcss). If you import templates from HTML/CSS or embed custom codes (eg. by using [grapesjs-custom-code](https://github.com/GrapesJS/components-custom-code) plugin) you definitely need to use this one to avoid issues with styles, [check here why](http://grapesjs.com/docs/guides/Custom-CSS-parser.html#cssom-results-are-inconsistent).

> Requires GrapesJS v0.14.33 or higher





## Summary

* Plugin name: `grapesjs-parser-postcss`





## Options

This plugin has no options





## Download

* CDN
  * `https://unpkg.com/grapesjs-parser-postcss`
* NPM
  * `npm i grapesjs-parser-postcss`
* GIT
  * `git clone https://github.com/GrapesJS/parser-postcss.git`





## Usage

Directly in the browser
```html
<link href="https://unpkg.com/grapesjs/dist/css/grapes.min.css" rel="stylesheet"/>
<script src="https://unpkg.com/grapesjs"></script>
<script src="path/to/grapesjs-parser-postcss.min.js"></script>

<div id="gjs"></div>

<script type="text/javascript">
  var editor = grapesjs.init({
      container : '#gjs',
      // ...
      plugins: ['grapesjs-parser-postcss'],
  });
</script>
```

Modern javascript
```js
import grapesjs from 'grapesjs';
import parserPostCSS from 'grapesjs-parser-postcss';

const editor = grapesjs.init({
  container : '#gjs',
  // ...
  plugins: [parserPostCSS],
});
```





## Development

Clone the repository

```sh
$ git clone https://github.com/GrapesJS/parser-postcss.git
$ cd grapesjs-parser-postcss
```

Install dependencies

```sh
$ npm i
```

Start the dev server

```sh
$ npm start
```





## License

BSD 3-Clause

---
_Source: https://npm.io/package/grapesjs-parser-postcss · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
