Skip to content

Commit 6a663df

Browse files
authored
fix: override style issues (close: #637) (#638)
1. duplicated generated override style 2. unexpected style order, override style should be at the end of the extracted style bundle. (ref: webpack-contrib/mini-css-extract-plugin#130)
1 parent 28d8eeb commit 6a663df

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

lib/app/app.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ import { siteData } from '@temp/siteData'
77
import enhanceApp from '@temp/enhanceApp'
88
import themeEnhanceApp from '@temp/themeEnhanceApp'
99

10+
// generated from user config
11+
import('@temp/override.styl')
12+
1013
// built-in components
1114
import Content from './components/Content'
1215
import OutboundLink from './components/OutboundLink.vue'

lib/default-theme/styles/config.styl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,3 @@ $MQMobileNarrow = 419px
1717

1818
// code
1919
$lineNumbersWrapperWidth = 3.5rem
20-
21-
@import '~@temp/override.styl' // generated from user config

lib/webpack/createBaseConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module.exports = function createBaseConfig ({
4949
: path.resolve(__dirname, './noopModule.js'))
5050
.end()
5151
.extensions
52-
.merge(['.js', '.jsx', '.vue', '.json'])
52+
.merge(['.js', '.jsx', '.vue', '.json', '.styl'])
5353
.end()
5454
.modules
5555
// prioritize our own

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy