-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e189ea7
commit baed03a
Showing
24 changed files
with
17,539 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,4 @@ | |
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
|
||
const { when, whenDev, whenProd, whenTest, ESLINT_MODES, POSTCSS_MODES } = require("@craco/craco"); | ||
const CracoLessPlugin = require('craco-less'); | ||
const CracoAntDesignPlugin = require("craco-antd"); | ||
const CracoAlias = require("craco-alias"); | ||
|
||
module.exports = { | ||
reactScriptsVersion: "react-scripts", | ||
plugins: [ | ||
{ plugin: CracoAntDesignPlugin }, | ||
{ plugin: CracoLessPlugin }, | ||
{ | ||
plugin: CracoAlias, | ||
options: { | ||
// see in examples section | ||
baseUrl: './src', | ||
source: 'tsconfig', | ||
tsConfigPath: 'tsconfig.paths.json', | ||
} | ||
} | ||
], | ||
// style: { | ||
// modules: { | ||
// localIdentName: "" | ||
// }, | ||
// css: { | ||
// loaderOptions: { /* Any css-loader configuration options: https://github.com/webpack-contrib/css-loader. */ }, | ||
// loaderOptions: (cssLoaderOptions, { env, paths }) => { return cssLoaderOptions; } | ||
// }, | ||
// sass: { | ||
// loaderOptions: { /* Any sass-loader configuration options: https://github.com/webpack-contrib/sass-loader. */ }, | ||
// loaderOptions: (sassLoaderOptions, { env, paths }) => { return sassLoaderOptions; } | ||
// }, | ||
// postcss: { | ||
// mode: "extends" /* (default value) */ || "file", | ||
// plugins: [], | ||
// env: { | ||
// autoprefixer: { /* Any autoprefixer options: https://github.com/postcss/autoprefixer#options */ }, | ||
// stage: 3, /* Any valid stages: https://cssdb.org/#staging-process. */ | ||
// features: { /* Any CSS features: https://preset-env.cssdb.org/features. */ } | ||
// }, | ||
// loaderOptions: { /* Any postcss-loader configuration options: https://github.com/postcss/postcss-loader. */ }, | ||
// loaderOptions: (postcssLoaderOptions, { env, paths }) => { return postcssLoaderOptions; } | ||
// } | ||
// }, | ||
// eslint: { | ||
// enable: true /* (default value) */, | ||
// mode: "extends" /* (default value) */ || "file", | ||
// configure: { /* Any eslint configuration options: https://eslint.org/docs/user-guide/configuring */ }, | ||
// configure: (eslintConfig, { env, paths }) => { return eslintConfig; }, | ||
// loaderOptions: { /* Any eslint-loader configuration options: https://github.com/webpack-contrib/eslint-loader. */ }, | ||
// loaderOptions: (eslintOptions, { env, paths }) => { return eslintOptions; } | ||
// }, | ||
// babel: { | ||
// presets: [], | ||
// plugins: [], | ||
// loaderOptions: { /* Any babel-loader configuration options: https://github.com/babel/babel-loader. */ }, | ||
// loaderOptions: (babelLoaderOptions, { env, paths }) => { return babelLoaderOptions; } | ||
// }, | ||
// typescript: { | ||
// enableTypeChecking: true /* (default value) */ | ||
// } | ||
} |
Oops, something went wrong.