Skip to content

Commit

Permalink
보일러 플레이트 작업 완료
Browse files Browse the repository at this point in the history
  • Loading branch information
gongdongho12 committed Jul 13, 2020
1 parent e189ea7 commit baed03a
Show file tree
Hide file tree
Showing 24 changed files with 17,539 additions and 47 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.vscode
63 changes: 63 additions & 0 deletions craco.config.js
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) */
// }
}
Loading

0 comments on commit baed03a

Please sign in to comment.