Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (egg-development) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
egg-development
This is an egg plugin for local development, under development environment enabled by default, and closed under other environment.
egg-development has been built-in for egg. It is enabled by default.
Configuration
see config/config.default.js for more detail.
Features
- Under development environment, Output request log in STDOUT, statistic and output all key parts time-consuming;
- Watch file changes, and reload application;
About Reload
Under the following directory (including subdirectories) will watch file changes under development environment by default, trigger an Egg development environment server reload:
- ${app_root}/app
- ${app_root}/config
- ${app_root}/mocks
- ${app_root}/mocks_proxy
- ${app_root}/app.js
set
config.development.overrideDefaulttotrueto skip defaults merge.
Under the following directory (including subdirectories) will ignore file changes under development environment by default:
- ${app_root}/app/view
- ${app_root}/app/assets
- ${app_root}/app/public
- ${app_root}/app/web
set
config.development.overrideIgnoretotrueto skip defaults merge.
Developer can use config.reloadPattern(multimatch) to control whether to reload.
// config/config.default.js
exports.development = {
// don't reload when ts fileChanged
// https://github.com/sindresorhus/multimatch
reloadPattern: ['**', '!**/*.ts'],
};Loader Trace
You can view loader trace for performance issue from http://127.0.0.1:7001/__loader_trace__
Questions & Suggestions
Please open an issue here.
License
Contributors
Made with contributors-img.