egg-view-assets

1.9.0 • Public • Published

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.9.099latest

Version History

VersionDownloads (Last 7 Days)Published
1.9.099
1.8.41
1.8.32
1.8.20
1.8.112
1.8.010
1.7.00
1.6.20
1.6.16
1.6.00
1.5.00
1.4.40
1.4.30
1.4.20
1.4.10
1.4.00
1.3.00
1.2.00
1.1.20
1.1.10
1.1.00
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00
1.0.0-alpha.20
1.0.0-alpha.10

Package Sidebar

Install

npm i egg-view-assets

Weekly Downloads

130

Version

1.9.0

License

MIT

Unpacked Size

18.3 kB

Total Files

13

Last publish

Collaborators

  • dead_horse
  • fengmk2
  • popomore