UNPKG

@gregdev/vue3-shortkey

Version:

A vue-shortkey port for VueJS 3.x accepts shortcuts globaly and in a single listener.

47 lines (44 loc) 991 B
var path = require('path') var webpack = require('webpack') var libraryName = 'VueShortkey' module.exports = { entry: './src/index.js', output: { path: path.resolve(__dirname, '../dist/'), publicPath: '../dist/', filename: 'index.js', library: libraryName, libraryTarget: 'umd', umdNamedDefine: true }, module: { rules: [ { test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/ } ] }, performance: { hints: false }, devtool: '#eval-source-map' } if (process.env.NODE_ENV === 'production') { module.exports.devtool = '#source-map' // http://vue-loader.vuejs.org/en/workflow/production.html module.exports.plugins = (module.exports.plugins || []).concat([ new webpack.DefinePlugin({ 'process.env': { NODE_ENV: '"production"' } }), new webpack.optimize.UglifyJsPlugin({ sourceMap: true, compress: { warnings: false } }) ]) }