Skip to content

About

Manage frontend assets in development and production.

Topics

Resources

Stars

52 stars

Watchers

10 watching

Forks

Latest commit

 

History

68 Commits

Folders and files

Repository files navigation

egg-view-assets

NPM version Node.js CI Test coverage npm download

Manage frontend assets in development and production.

Install

$ npm i egg-view-assets --save

Usage

Add egg-view-assets as plugin

// {app_root}/config/plugin.js
exports.assets = {
  enable: true,
  package: 'egg-view-assets',
};

Configuration, you can see full example in egg-ant-design-pro.

// {app_root}/config/config.default.js
exports.view = {
  mapping: {
    '.js': 'assets',
  },
};

exports.assets = {
  devServer: {
    command: 'roadhog dev',
    port: 8000,
  },
};

See config/config.default.js for more detail.

Questions & Suggestions

Please open an issue here.

License

MIT

About

Manage frontend assets in development and production.

Topics

Resources

Stars

52 stars

Watchers

10 watching

Forks

Releases

Used by

Contributors

Languages