const path = require('path'); const baseWebpackConfig = require('../../../build/webpack.dev'); module.exports = Object.assign(baseWebpackConfig, { mode: 'production', entry: { index: './src/index.js' }, output: { path: path.resolve(__dirname, '../lib'), filename: '[name].js', libraryTarget: 'commonjs2' }, externals: { vue: { root: 'Vue', commonjs: 'vue', commonjs2: 'vue', amd: 'vue' } } });