@wepy/plugin-define

2.1.0 • Public • Published

wepy define plugin

Install

npm install @wepy/plugin-define --save-dev

Configration

wepy.config.js

const DefinePlugin = require('@wepy/plugin-define');

module.exports = {
  plugins: [
    DefinePlugin({
      BASE_URL: JSON.stringify('http://foobar.com'),
      'process.env.NODE_ENV': 'development',
      'typeof window': JSON.stringify('undefined'),
      DEV: true
    })
  ]
};

Reference

webpack.DefinePlugin

Readme

Keywords

Package Sidebar

Install

npm i @wepy/plugin-define

Weekly Downloads

31

Version

2.1.0

License

MIT

Unpacked Size

12 kB

Total Files

10

Last publish

Collaborators

  • dlhandsome
  • gcaufy