-
Notifications
You must be signed in to change notification settings - Fork 84
Include CSS files when copying files with Encore #177
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
Conversation
Without the CSS files being copied into the build directory, a bunch of requests fail as they are missing. This change adds them to the build output.
Ci failing is my fault, didn't merge from 2.x to master. Will do tonight |
Currently, the documented rules also copy the samples folders into the build directory. We can prevent that from happening by using these rules as replacement for the first rule instead: {from: './node_modules/ckeditor/', to: 'ckeditor/[path][name].[ext]', pattern: /\.(js|css)$/, includeSubdirectories: false},
{from: './node_modules/ckeditor/adapters', to: 'ckeditor/adapters/[path][name].[ext]'},
{from: './node_modules/ckeditor/plugins', to: 'ckeditor/plugins/[path][name].[ext]', Shall I include this in this MR, or add a separate one? |
You can do it here. |
This now generates a warning on
I'm not sure why the Edit: Fixed with latest commit :) |
Looks like a bug to me :( We use something like But Webpack 4 added a special treatment for I'll try to see if something can be done in Encore to fix that but most solutions don't really apply to our case... In the meantime I guess that your solution should work fine. |
Thank @bobvandevijver! Thanks @Lyrkan for reviewing again! |
@kunicmarko20 sorry I'm late 😅 I only seen your cc to me for review now |
np @ktherage, I guess change is fine? |
@kunicmarko20 Yes, in fact i didn't really mind myself about what may be imported and what may not. It just worked. I'm glad to see that this piece of doc leads more experimented people to make improvement on it. |
Without the CSS files being copied into the build directory, a bunch of requests fail as they are missing. This change adds them to the build output.
Edit: I've also adjusted the rules to no longer include the
samples
directory.