yg-view-assets
Manage frontend assets in development and production.
Install
$ npm i yg-view-assets --save
Usage
Add yg-view-assets
as plugin
// {app_root}/config/plugin.jsexportsassets = enable: true package: 'yg-view-assets';
Configuration, you can see full example in egg-ant-design-pro.
// {app_root}/config/config.default.jsexportsview = mapping: '.js': 'assets' ; exportsassets = devServer: command: 'roadhog dev' port: 8000 ;
See config/config.default.js for more detail.
manifest refactor by roy
增加 validManifest 默认验证,传入false不验证
config.assets = {
validManifest: false
}
Questions & Suggestions
Please open an issue here.