Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VueElementTemplate
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄瑜
VueElementTemplate
Commits
3466b9fe
Commit
3466b9fe
authored
Jun 30, 2017
by
Pan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix postcss bug
parent
00e06fe4
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
66 additions
and
56 deletions
+66
-56
.postcssrc.js
.postcssrc.js
+8
-0
utils.js
build/utils.js
+52
-52
App.vue
src/App.vue
+4
-0
main.js
src/main.js
+1
-2
index.scss
src/styles/index.scss
+1
-2
No files found.
.postcssrc.js
0 → 100644
View file @
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
View file @
3466b9fe
...
...
@@ -21,7 +21,7 @@ exports.cssLoaders = function (options) {
}
// generate loader string to be used with extract text plugin
function
generateLoaders
(
loader
,
loaderOptions
)
{
function
generateLoaders
(
loader
,
loaderOptions
)
{
var
loaders
=
[
cssLoader
]
if
(
loader
)
{
loaders
.
push
({
...
...
@@ -44,12 +44,12 @@ exports.cssLoaders = function (options) {
}
}
// http://vuejs.github.io/vue-loader
/en/configurations/extract-css.html
// https://vue-loader.vuejs.org
/en/configurations/extract-css.html
return
{
css
:
generateLoaders
(),
postcss
:
generateLoaders
(),
less
:
generateLoaders
(
'less'
),
sass
:
generateLoaders
(
'sass'
,
{
indentedSyntax
:
true
}),
sass
:
generateLoaders
(
'sass'
,
{
indentedSyntax
:
true
}),
scss
:
generateLoaders
(
'sass'
),
stylus
:
generateLoaders
(
'stylus'
),
styl
:
generateLoaders
(
'stylus'
)
...
...
src/App.vue
View file @
3466b9fe
...
...
@@ -9,3 +9,7 @@
name
:
'APP'
}
</
script
>
<
style
lang=
"scss"
>
@import
'./styles/index.scss'
;
// 全局自定义的css样式
</
style
>
src/main.js
View file @
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
View file @
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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment