Skip to content

Commit

Permalink
Merge pull request #4 from Singwai/upgrade-postcss-8
Browse files Browse the repository at this point in the history
upgrade postcss 8
  • Loading branch information
artf authored Aug 1, 2022
2 parents 358daa0 + 7660430 commit e1e8cef
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 43 deletions.
62 changes: 22 additions & 40 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "grapesjs-parser-postcss",
"version": "0.1.1",
"version": "0.2.1",
"description": "Custom CSS parser via PostCSS for GrapesJS",
"main": "dist/grapesjs-parser-postcss.min.js",
"scripts": {
Expand Down Expand Up @@ -45,6 +45,6 @@
"webpack-dev-server": "^3.1.8"
},
"dependencies": {
"postcss": "^7.0.2"
"postcss": "^8.4.13"
}
}
2 changes: 1 addition & 1 deletion src/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default (css, editor) => {
const result = [];
log(editor, ['Input CSS', css]);

const ast = postcss.parse(css);
const ast = postcss().process(css).sync().root;
log(editor, ['PostCSS AST', ast]);

ast.nodes.forEach(node => {
Expand Down

0 comments on commit e1e8cef

Please sign in to comment.