UNPKG

vue-instant

Version:

vue instant allows you to easily create custom search controls with auto suggestions for your vue 2 application.

30 lines (27 loc) 733 B
var webpack = require('webpack') var merge = require('webpack-merge') var base = require('./webpack.config.base') var path = require('path') var distDir = path.join(__dirname, '../dist') var outputFile = 'vue-instant' var globalName = 'VueInstant' module.exports = merge(base, { output: { path: distDir, filename: outputFile + '.browser.js', library: globalName, libraryTarget: 'umd', }, externals: { vue: 'vue', 'vue-clickaway': 'VueClickaway' // use global variable VueClickaway (https://webpack.github.io/docs/library-and-externals.html) }, plugins: [ new webpack.optimize.UglifyJsPlugin({ compress: { warnings: true, }, mangle: false, }), ], })