vue-jcrop
Version:
The Javascript cropping widget for Vue.js
30 lines (27 loc) • 661 B
JavaScript
var webpack = require('webpack')
var merge = require('webpack-merge')
var base = require('./webpack.config.base')
var path = require('path')
var outputFile = 'vue-jcrop'
var globalName = 'VueJcrop'
module.exports = merge(base, {
output: {
path: path.resolve(__dirname, '../dist'),
filename: outputFile + '.common.js',
libraryTarget: 'commonjs2',
},
target: 'node',
externals: {
// Put external libraries like lodash here
// With their package name
// Example: 'lodash': 'lodash'
},
plugins: [
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: true,
},
mangle: false,
}),
],
})