From a93d912e63850b09ee208aa25f877576d21b89ea Mon Sep 17 00:00:00 2001 From: Jan Van Bruggen Date: Thu, 17 Nov 2016 10:41:17 -0800 Subject: [PATCH] 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'`. --- examples/docs/en-US/custom-theme.md | 2 +- examples/docs/zh-CN/custom-theme.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/docs/en-US/custom-theme.md b/examples/docs/en-US/custom-theme.md index 44bf13f16..19df6cf52 100644 --- a/examples/docs/en-US/custom-theme.md +++ b/examples/docs/en-US/custom-theme.md @@ -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' diff --git a/examples/docs/zh-CN/custom-theme.md b/examples/docs/zh-CN/custom-theme.md index e5b33c871..86f3d6ac1 100644 --- a/examples/docs/zh-CN/custom-theme.md +++ b/examples/docs/zh-CN/custom-theme.md @@ -63,7 +63,7 @@ node_modules/.bin/et 默认情况下编译的主题目录是放在 `./theme` 下,你可以通过 `-o` 参数指定打包目录。像引入默认主题一样,在代码里直接引用 `theme/index.css` 文件即可。 ```javascript -import './theme/index.css' +import '../theme/index.css' import ElementUI from 'element-ui' import Vue from 'vue'