UNPKG

@wepy/plugin-define

Version:

wepy define plugin

14 lines (12 loc) 304 B
const DefinePlugin = require('../../index'); module.exports = { plugins: [ DefinePlugin({ BASE_URL: JSON.stringify('http://www.bar.com') }), DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify('development'), 'typeof window': JSON.stringify('undefined'), }) ], }