craco.config.js
devServerConfig
本地服务器配置
{
allowedHosts: 'all',
headers: {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': '*',
'Access-Control-Allow-Headers': '*'
},
compress: true,
static: {
directory: '/Users/lulongwen/Documents/Project/datav/skywalking/cra-skywalking/public',
publicPath: ['/'],
watch: {
ignored: /^(?!\/Users\/lulongwen\/Documents\/Project\/datav\/skywalking\/cra\x2dskywalking\/src\/).+\/node_modules\//g
}
},
client: {
webSocketURL: { hostname: undefined, pathname: undefined, port: undefined },
overlay: { errors: true, warnings: false }
},
devMiddleware: { publicPath: '' },
https: false,
host: '0.0.0.0',
historyApiFallback: { disableDotRule: true, index: '/' },
proxy: undefined,
onBeforeSetupMiddleware: [Function: onBeforeSetupMiddleware],
onAfterSetupMiddleware: [Function: onAfterSetupMiddleware]
}
env 环境变量
development
paths
{
dotenv: '/Users/lulongwen/Documents/cra-skywalking/.env',
appPath: '/Users/lulongwen/Documents/cra-skywalking',
appBuild: '/Users/lulongwen/Documents/cra-skywalking/build',
appPublic: '/Users/lulongwen/Documents/cra-skywalking/public',
appHtml: '/Users/lulongwen/Documents/cra-skywalking/public/index.html',
appIndexJs: '/Users/lulongwen/Documents/cra-skywalking/src/index.js',
appPackageJson: '/Users/lulongwen/Documents/cra-skywalking/package.json',
appSrc: '/Users/lulongwen/Documents/cra-skywalking/src',
appTsConfig: '/Users/lulongwen/Documents/cra-skywalking/tsconfig.json',
appJsConfig: '/Users/lulongwen/Documents/cra-skywalking/jsconfig.json',
yarnLockFile: '/Users/lulongwen/Documents/cra-skywalking/yarn.lock',
testsSetup: '/Users/lulongwen/Documents/cra-skywalking/src/setupTests.js',
proxySetup: '/Users/lulongwen/Documents/cra-skywalking/src/setupProxy.js',
appNodeModules: '/Users/lulongwen/Documents/cra-skywalking/node_modules',
appWebpackCache: '/Users/lulongwen/Documents/cra-skywalking/node_modules/.cache',
appTsBuildInfoFile: '/Users/lulongwen/Documents/cra-skywalking/node_modules/.cache/tsconfig.tsbuildinfo',
swSrc: '/Users/lulongwen/Documents/cra-skywalking/src/service-worker.js',
publicUrlOrPath: '/',
ownPath: '/Users/lulongwen/Documents/cra-skywalking/node_modules/react-scripts',
ownNodeModules: '/Users/lulongwen/Documents/cra-skywalking/node_modules/react-scripts/node_modules',
appTypeDeclarations: '/Users/lulongwen/Documents/cra-skywalking/src/react-app-env.d.ts',
ownTypeDeclarations: '/Users/lulongwen/Documents/cra-skywalking/node_modules/react-scripts/lib/react-app.d.ts',
moduleFileExtensions: [
'web.mjs', 'mjs',
'web.js', 'js',
'web.ts', 'ts',
'web.tsx', 'tsx',
'json', 'web.jsx',
'jsx'
]
}
proxy
undefined
allowedHost
本地 IP
192.168.0.6