This commit is contained in:
SunnyQjm committed 2019-10-26 22:14:46 +08:00
1 parent 7bf538b041
commit 5010dfa23d
7 files changed
+96

No files matched your search

Executable
+16
View File
@@ -0,0 +1,16 @@
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false
[Makefile]
indent_style = tab
+2
View File
@@ -0,0 +1,2 @@
BROWSER=none
ESLINT=1
Executable
+3
View File
@@ -0,0 +1,3 @@
{
"extends": "eslint-config-umi"
}
Executable
+18
View File
@@ -0,0 +1,18 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/npm-debug.log*
/yarn-error.log
/yarn.lock
/package-lock.json
# production
/dist
# misc
.DS_Store
# umi
.umi
.umi-production
+7
View File
@@ -0,0 +1,7 @@
**/*.md
**/*.svg
**/*.ejs
**/*.html
package.json
.umi
.umi-production
+11
View File
@@ -0,0 +1,11 @@
{
"singleQuote": true,
"trailingComma": "all",
"printWidth": 100,
"overrides": [
{
"files": ".prettierrc",
"options": { "parser": "json" }
}
]
}
+39
View File
@@ -0,0 +1,39 @@
import { IConfig } from 'umi-types';
// ref: https://umijs.org/config/
const config: IConfig = {
treeShaking: true,
// routes: [
// {
// path: '/',
// component: '../layouts/index',
// routes: [
// { path: '/', component: '../pages/index' }
// ]
// }
// ],
plugins: [
// ref: https://umijs.org/plugin/umi-plugin-react.html
['umi-plugin-react', {
antd: true,
dva: true,
dynamicImport: { webpackChunkName: true },
title: 'sunny-blog',
dll: false,
routes: {
exclude: [
/models\//,
/services\//,
/model\.(t|j)sx?$/,
/service\.(t|j)sx?$/,
/components\//,
],
},
}],
],
sass: {},
disableCSSModules: true
};
export default config;