Custom CSS parser via PostCSS for GrapesJS
npm install grapesjs-parser-postcssThis plugin enables custom CSS parser via PostCSS. If you import templates from HTML/CSS or embed custom codes (eg. by using grapesjs-custom-code plugin) you definitely need to use this one to avoid issues with styles, check here why.
> Requires GrapesJS v0.14.33 or higher
* Plugin name: grapesjs-parser-postcss
This plugin has no options
* CDN
* https://unpkg.com/grapesjs-parser-postcss
* NPM
* npm i grapesjs-parser-postcss
* GIT
* git clone https://github.com/GrapesJS/parser-postcss.git
Directly in the browser
``html
`
Modern javascript
`js
import grapesjs from 'grapesjs';
import parserPostCSS from 'grapesjs-parser-postcss';
const editor = grapesjs.init({
container : '#gjs',
// ...
plugins: [parserPostCSS],
});
`
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
BSD 3-Clause