Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
gyf5267218
vue-element-admin
提交
3466b9fe
V
vue-element-admin
项目概览
gyf5267218
/
vue-element-admin
与 Fork 源项目一致
从无法访问的项目Fork
通知
4
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue-element-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
3466b9fe
编写于
6月 30, 2017
作者:
P
Pan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix postcss bug
上级
00e06fe4
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
66 addition
and
56 deletion
+66
-56
.postcssrc.js
.postcssrc.js
+8
-0
build/utils.js
build/utils.js
+52
-52
src/App.vue
src/App.vue
+4
-0
src/main.js
src/main.js
+1
-2
src/styles/index.scss
src/styles/index.scss
+1
-2
未找到文件。
.postcssrc.js
0 → 100644
浏览文件 @
3466b9fe
// https://github.com/michael-ciniawsky/postcss-load-config
module
.
exports
=
{
"
plugins
"
:
{
// to edit target browsers: use "browserlist" field in package.json
"
autoprefixer
"
:
{}
}
}
build/utils.js
浏览文件 @
3466b9fe
...
...
@@ -3,69 +3,69 @@ var config = require('../config')
var
ExtractTextPlugin
=
require
(
'
extract-text-webpack-plugin
'
)
exports
.
assetsPath
=
function
(
_path
)
{
var
assetsSubDirectory
=
process
.
env
.
NODE_ENV
===
'
production
'
?
config
.
build
.
assetsSubDirectory
:
config
.
dev
.
assetsSubDirectory
return
path
.
posix
.
join
(
assetsSubDirectory
,
_path
)
var
assetsSubDirectory
=
process
.
env
.
NODE_ENV
===
'
production
'
?
config
.
build
.
assetsSubDirectory
:
config
.
dev
.
assetsSubDirectory
return
path
.
posix
.
join
(
assetsSubDirectory
,
_path
)
}
exports
.
cssLoaders
=
function
(
options
)
{
options
=
options
||
{}
options
=
options
||
{}
var
cssLoader
=
{
loader
:
'
css-loader
'
,
options
:
{
minimize
:
process
.
env
.
NODE_ENV
===
'
production
'
,
sourceMap
:
options
.
sourceMap
}
var
cssLoader
=
{
loader
:
'
css-loader
'
,
options
:
{
minimize
:
process
.
env
.
NODE_ENV
===
'
production
'
,
sourceMap
:
options
.
sourceMap
}
}
// generate loader string to be used with extract text plugin
function
generateLoaders
(
loader
,
loaderOptions
)
{
var
loaders
=
[
cssLoader
]
if
(
loader
)
{
loaders
.
push
({
loader
:
loader
+
'
-loader
'
,
options
:
Object
.
assign
({},
loaderOptions
,
{
sourceMap
:
options
.
sourceMap
})
})
}
// Extract CSS when that option is specified
// (which is the case during production build)
if
(
options
.
extract
)
{
return
ExtractTextPlugin
.
extract
({
use
:
loaders
,
fallback
:
'
vue-style-loader
'
})
}
else
{
return
[
'
vue-style-loader
'
].
concat
(
loaders
)
}
// generate loader string to be used with extract text plugin
function
generateLoaders
(
loader
,
loaderOptions
)
{
var
loaders
=
[
cssLoader
]
if
(
loader
)
{
loaders
.
push
({
loader
:
loader
+
'
-loader
'
,
options
:
Object
.
assign
({},
loaderOptions
,
{
sourceMap
:
options
.
sourceMap
})
})
}
//
http://vuejs.github.io/vue-loader/en/configurations/extract-css.html
return
{
css
:
generateLoaders
(),
postcss
:
generateLoaders
(),
less
:
generateLoaders
(
'
less
'
)
,
sass
:
generateLoaders
(
'
sass
'
,
{
indentedSyntax
:
true
}),
scss
:
generateLoaders
(
'
sass
'
),
stylus
:
generateLoaders
(
'
stylus
'
),
styl
:
generateLoaders
(
'
stylus
'
)
//
Extract CSS when that option is specified
// (which is the case during production build)
if
(
options
.
extract
)
{
return
ExtractTextPlugin
.
extract
({
use
:
loaders
,
fallback
:
'
vue-style-loader
'
})
}
else
{
return
[
'
vue-style-loader
'
].
concat
(
loaders
)
}
}
// https://vue-loader.vuejs.org/en/configurations/extract-css.html
return
{
css
:
generateLoaders
(),
postcss
:
generateLoaders
(),
less
:
generateLoaders
(
'
less
'
),
sass
:
generateLoaders
(
'
sass
'
,
{
indentedSyntax
:
true
}),
scss
:
generateLoaders
(
'
sass
'
),
stylus
:
generateLoaders
(
'
stylus
'
),
styl
:
generateLoaders
(
'
stylus
'
)
}
}
// Generate loaders for standalone style files (outside of .vue)
exports
.
styleLoaders
=
function
(
options
)
{
var
output
=
[]
var
loaders
=
exports
.
cssLoaders
(
options
)
for
(
var
extension
in
loaders
)
{
var
loader
=
loaders
[
extension
]
output
.
push
({
test
:
new
RegExp
(
'
\\
.
'
+
extension
+
'
$
'
),
use
:
loader
})
}
return
output
var
output
=
[]
var
loaders
=
exports
.
cssLoaders
(
options
)
for
(
var
extension
in
loaders
)
{
var
loader
=
loaders
[
extension
]
output
.
push
({
test
:
new
RegExp
(
'
\\
.
'
+
extension
+
'
$
'
),
use
:
loader
})
}
return
output
}
src/App.vue
浏览文件 @
3466b9fe
...
...
@@ -9,3 +9,7 @@
name
:
'
APP
'
}
</
script
>
<
style
lang=
"scss"
>
@import
'./styles/index.scss'
;
// 全局自定义的css样式
</
style
>
src/main.js
浏览文件 @
3466b9fe
...
...
@@ -6,11 +6,10 @@ import router from './router';
import
store
from
'
./store
'
;
import
ElementUI
from
'
element-ui
'
;
import
'
element-ui/lib/theme-default/index.css
'
;
import
'
assets/custom-theme/index.css
'
;
// 换肤版本element-ui css
https://github.com/PanJiaChen/custom-element-theme
import
'
assets/custom-theme/index.css
'
;
// 换肤版本element-ui css
import
NProgress
from
'
nprogress
'
;
// Progress 进度条
import
'
nprogress/nprogress.css
'
;
// Progress 进度条 样式
import
'
normalize.css/normalize.css
'
;
// normalize.css 样式格式化
import
'
styles/index.scss
'
;
// 全局自定义的css样式
import
'
components/Icon-svg/index
'
;
// 封装的svg组件
import
'
assets/iconfont/iconfont
'
;
// iconfont 具体图标见https://github.com/PanJiaChen/vue-element-admin/wiki
import
*
as
filters
from
'
./filters
'
;
// 全局vue filter
...
...
src/styles/index.scss
浏览文件 @
3466b9fe
@import
'./btn.scss'
;
@import
'./element-ui.scss'
;
@import
"./mixin.scss"
;
@import
'./mixin.scss'
;
body
{
-moz-osx-font-smoothing
:
grayscale
;
-webkit-font-smoothing
:
antialiased
;
...
...
@@ -108,7 +108,6 @@ code {
margin-top
:
30px
;
}
.editor-container
.CodeMirror
{
height
:
100%
!
important
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录