1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00

sing create-react-app now

This commit is contained in:
Fedor Katurov 2020-11-19 17:27:19 +07:00
parent 332d09e3bd
commit a9c43e8976
41 changed files with 6207 additions and 15613 deletions

46
craco.config.js Normal file
View file

@ -0,0 +1,46 @@
const CracoAlias = require('craco-alias');
module.exports = {
webpack: {
alias: {
'~': `src`,
},
output: {
publicPath: '/',
},
},
eslint: {
enable: false,
mode: 'file',
},
// jest: {
// setupTestFrameworkScriptFile: "<rootDir>/src/setupTests.js",
// configure: {
// moduleNameMapper: {
// "^~/(.*)$": "<rootDir>/src/$1",
// "^.+\\.scss$": "identity-obj-proxy"
// },
// snapshotSerializers: ["enzyme-to-json/serializer"],
// moduleFileExtensions: ["js", "json", "ts", "tsx", "jsx", "node"],
// verbose: true,
// roots: ["<rootDir>/src"],
// transform: {
// "^.+\\.tsx?$": "ts-jest",
// "^.+\\.ts?$": "babel-jest",
// "^.+\\.js?$": "ts-jest",
// "^.+\\.jsx?$": "babel-jest"
// },
// preset: "ts-jest/presets/js-with-ts",
// testEnvironment: "node"
// }
// },
plugins: [
{
plugin: CracoAlias,
options: {
source: 'tsconfig',
tsConfigPath: 'tsconfig.paths.json',
},
},
],
};