diff options
author | silverwind | 2022-01-07 00:41:31 -0800 |
---|---|---|
committer | GitHub | 2022-01-07 16:41:31 +0800 |
commit | 3dbdf36d952678aafd1dac1a9fccce51bdbb8fc0 (patch) | |
tree | 4b083828242277506a7b47de80cdb8bb8db617d3 /webpack.config.js | |
parent | 80705cf4b4ecbbeb4d9636bfa105cf87625b06b5 (diff) |
Fix CSS specificity issue with easymde's css (#18201)
* Fix CSS specificity issue with easymde's css
PR #18069 introduced a regression in certain overwritten editor styles
because the dynamic loading of easymde.min.css causes its's style to
apply after our supposed override styles.
Solve this by bundling the styles into index.css. We should later aim to
completely replace easymde.min.css completely with our own styles so there
are no more conflicts.
* Update web_src/js/features/comp/EasyMDE.js
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js index b3887f723..5736615e6 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -46,6 +46,7 @@ export default { resolve(__dirname, 'web_src/js/jquery.js'), resolve(__dirname, 'web_src/fomantic/build/semantic.js'), resolve(__dirname, 'web_src/js/index.js'), + resolve(__dirname, 'node_modules/easymde/dist/easymde.min.css'), resolve(__dirname, 'web_src/fomantic/build/semantic.css'), resolve(__dirname, 'web_src/less/misc.css'), resolve(__dirname, 'web_src/less/index.less'), |