- Notifications
You must be signed in to change notification settings - Fork21
Manage frontend assets in development and production.
License
NotificationsYou must be signed in to change notification settings
eggjs/egg-view-assets
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Manage frontend assets in development and production.
$ npm i egg-view-assets --save
Addegg-view-assets
as plugin
// {app_root}/config/plugin.jsexports.assets={enable:true,package:'egg-view-assets',};
Configuration, you can see full example inegg-ant-design-pro.
// {app_root}/config/config.default.jsexports.view={mapping:{'.js':'assets',},};exports.assets={devServer:{command:'roadhog dev',port:8000,},};
Seeconfig/config.default.js for more detail.
Please open an issuehere.
About
Manage frontend assets in development and production.