@mindev/min-plugin-define
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

min plugin-define

安装

$ npm install @mindev/min-plugin-define --save-dev

配置 min.config.js

module.exports = {
  plugins: {
    define: {
      validate (options: PluginHelper.Options) {
        return true
      },
      config: {
        PRODUCTION: JSON.stringify(true),
        VERSION: JSON.stringify("5fa3b9"),
        BROWSER_SUPPORTS_HTML5: true,
        TWO: {}
      }
    }
  }
}

参数说明

Tip

  • min cli 2.x 版本开始支持

Readme

Keywords

Package Sidebar

Install

npm i @mindev/min-plugin-define

Weekly Downloads

1

Version

2.0.1

License

MIT

Unpacked Size

5.88 kB

Total Files

5

Last publish

Collaborators

  • badeng
  • osmn00
  • cds803