You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

egg-view-assets2

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

egg-view-assets2

Manage frontend assets in development and production

1.1.3
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

egg-view-assets

NPM version build status Test coverage David deps Known Vulnerabilities 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

Keywords

egg

FAQs

Package last updated on 10 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts