mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-19 12:04:02 +08:00
Docs: fix custom theme import path
When `src/main.js` imports `theme/index.css`, the import statement should import `'../theme/index.css'`, not `'./theme/index.css'`.
This commit is contained in:
committed by
Leopoldthecoder
parent
4dfb12a98e
commit
077c0cf73f
@@ -63,7 +63,7 @@ node_modules/.bin/et
|
||||
By default the build theme file is placed inside `./theme`. You can specify its output directory with parameter `-o`. Importing your own theme is just like importing the default theme, only this time you import the file you just built:
|
||||
|
||||
```javascript
|
||||
import './theme/index.css'
|
||||
import '../theme/index.css'
|
||||
import ElementUI from 'element-ui'
|
||||
import Vue from 'vue'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user