Skip to content

use css for custom model box from local file - #318

Merged
karussell merged 1 commit into
masterfrom
cmeditor_css
Mar 21, 2023
Merged

karussell merged 1 commit into
masterfrom
cmeditor_css

Conversation

@karussell

@karussell karussell commented Mar 21, 2023 •

Copy link
Copy Markdown
Member

This change makes it possible to change/overwrite the editor css from here.

Comment thread webpack.common.js
Comment on lines -60 to +62
modules: true,
modules: {
auto: (resourcePath) => resourcePath.endsWith(".module.css")
},

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This means we apply this rule to all css files (see the test property) (except node_modules), but use the modules only for those files ending with .module.css. There are probably other ways to achieve the same, but at least we can use plain css where 'needed' now. We 'need' this now, because we need to control the class names for the codemirror css rules and our current solution is to not use css modules for these css files.

@karussell karussell Mar 21, 2023 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are probably other ways to achieve the same

Yeah, I tried changing the "test" regex but without success. Better understanding this would be nice but for now this is clean enough IMO :)

@karussell
karussell merged commit b6d985e into master Mar 21, 2023
@karussell
karussell deleted the cmeditor_css branch March 21, 2023 13:33
@karussell karussell added this to the 0.5 milestone Mar 21, 2023
@karussell karussell mentioned this pull request Mar 21, 2023
karussell added a commit that referenced this pull request Mar 29, 2023
ZeroGxMax pushed a commit to minhhpkp/graphhopper-maps that referenced this pull request Nov 12, 2024
ZeroGxMax pushed a commit to minhhpkp/graphhopper-maps that referenced this pull request Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants