mirror of
https://github.com/SunnyQjm/sunny-blog.git
synced 2026-10-05 01:15:39 +08:00
init
This commit is contained in:
1 parent
7bf538b041
commit
5010dfa23d
7 files changed
+96
No files matched your search
Executable
+16
@@ -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
|
||||
Executable
+18
@@ -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
|
||||
@@ -0,0 +1,7 @@
|
||||
**/*.md
|
||||
**/*.svg
|
||||
**/*.ejs
|
||||
**/*.html
|
||||
package.json
|
||||
.umi
|
||||
.umi-production
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"singleQuote": true,
|
||||
"trailingComma": "all",
|
||||
"printWidth": 100,
|
||||
"overrides": [
|
||||
{
|
||||
"files": ".prettierrc",
|
||||
"options": { "parser": "json" }
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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;
|
||||
Reference in new issue
Block a user