build-plugin.js 253 Bytes
#!/usr/bin/env node
const execSync = require('child_process').execSync;
const path = require('path');

execSync(`npx cross-env NODE_ENV=production webpack build --config ${path.resolve(__dirname, '../config/webpack.plugin.js')}`, { stdio: 'inherit' });