-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Review PostCSS intergration in webpack configs #724
Comments
I also need to read through |
A related issue #688. |
I asked @jodator to check this because it requires creating an example project in which CKEditor 5 is used as a dependency. We should check how the |
Also, once we have some output and understanding how it works, then http://localhost/ckeditor5/build/docs/ckeditor5/1.0.0-alpha.2/framework/guides/quick-start.html can be updated with proper regexps. We may also have a section in http://localhost/ckeditor5/build/docs/ckeditor5/1.0.0-alpha.2/builds/guides/integration/advanced-setup.html about this and a link from the Quick start guide to that section. Also, let's simplify this bit: const { bundler } = require( '@ckeditor/ckeditor5-dev-utils' );
const { getPostCssConfig } = require( '@ckeditor/ckeditor5-dev-utils' ).styles; By exporting all the necessary parts directly from |
So far so good. The mentioned test was wrong as it does not allowed for nested directories. In other words only So you can use different post-css setups as you with as long as they will not interfere with CKEdfitor 5 ones. ie. {
test: /ckeditor5-[^/]+\/theme\/[\w-/]+\.css$/,
use: [
'style-loader',
{
loader: 'postcss-loader', options: { /**/ }
},
]
},
{
test: /app.css$/,
// test /.css$/, // will not work as it will try to parse CKEdtior5 files again
use: [
'style-loader',
{
loader: 'postcss-loader', options: { parser: 'sugarss' }
},
]
}, |
So, maybe we could only change the usage of this pkg in build pkgs. To import |
👍 I think that it would be a bit cleaner. I'll prepare a PR do dev-utils, |
Do we need a PR there? Unless I miss something, it seems that we just need to change |
Sorry I've ment PR to the ckeditor5-* repos. |
Other: Unify the `getPostCssConfig()` import from `@ckeditor/ckeditor5-dev-utils` package. See ckeditor/ckeditor5#724.
Other: Unify the `getPostCssConfig()` import from `@ckeditor/ckeditor5-dev-utils` package. See ckeditor/ckeditor5#724.
Other: Unify the `getPostCssConfig()` import from `@ckeditor/ckeditor5-dev-utils` package. See ckeditor/ckeditor5#724.
Other: Unify the `getPostCssConfig()` import from `@ckeditor/ckeditor5-dev-utils` package. See ckeditor/ckeditor5#724.
Other: Unify the `getPostCssConfig()` import from `@ckeditor/ckeditor5-dev-utils` package. See ckeditor/ckeditor5#724.
Other: Unify the `getPostCssConfig()` import from `@ckeditor/ckeditor5-dev-utils` package. See ckeditor/ckeditor5#724.
The text was updated successfully, but these errors were encountered: