Skip to content

Commit

Permalink
Merge pull request #979 from ckeditor/new-apporach-for-splitting-css-…
Browse files Browse the repository at this point in the history
…into-editor-and-content-stylsheets

Fix (build-tools): Should preserved all needed selectors and at-rules in CSS files after split into editor and content stylesheets. Closes ckeditor/ckeditor5#16703.
  • Loading branch information
pszczesniak authored Jul 19, 2024
2 parents 9af7fb7 + d6449dc commit 2b0feb3
Show file tree
Hide file tree
Showing 17 changed files with 320 additions and 326 deletions.
5 changes: 3 additions & 2 deletions packages/ckeditor5-dev-build-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"ckeditor5-dev-build-tools": "bin/build-project.js"
},
"dependencies": {
"@fullhuman/postcss-purgecss": "^6.0.0",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
Expand All @@ -36,8 +37,8 @@
"@rollup/pluginutils": "^5.1.0",
"@swc/core": "^1.4.8",
"chalk": "^5.3.0",
"css": "^3.0.0",
"cssnano": "^6.0.3",
"cssnano": "^7.0.4",
"cssnano-preset-lite": "^4.0.1",
"estree-walker": "^3.0.3",
"glob": "^10.3.10",
"lodash-es": "^4.17.21",
Expand Down
2 changes: 1 addition & 1 deletion packages/ckeditor5-dev-build-tools/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export async function getRollupConfig( options: BuildOptions ) {
} ),

/**
* Allows using imports, mixins and nesting in CSS and exctacts output CSS to a separate file.
* Allows using imports, mixins and nesting in CSS and extracts output CSS to a separate file.
*/
styles( {
mode: [ 'extract', cssFileName ],
Expand Down
Loading

0 comments on commit 2b0feb3

Please sign in to comment.