UNPKG

vue-google-pay

Version:
67 lines (66 loc) 1.36 kB
const path = require('path') const webpack = require('webpack') const VueLoaderPlugin = require('vue-loader/lib/plugin') const UglifyJsPlugin = require('uglifyjs-webpack-plugin') module.exports = { entry: './src/index.js', output: { path: path.resolve(__dirname, './dist'), publicPath: '/dist/', filename: 'index.js', library:'vue-google-pay', libraryTarget: 'umd' }, module: { rules: [ { test: /\.vue$/, loader: 'vue-loader', options: { loaders: { 'scss': 'vue-style-loader!css-loader!sass-loader', 'sass': 'vue-style-loader!css-loader!sass-loader?indentedSyntax' } } }, { test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/ } ] }, externals: { vue: 'vue' }, resolve: { alias: { 'vue$': 'vue/dist/vue.esm.js' } }, optimization: { minimizer: [ new UglifyJsPlugin({ sourceMap: false, parallel: 4, uglifyOptions: { warnings: false }, }) ] }, performance: { hints: false }, plugins: [ new VueLoaderPlugin(), new webpack.DefinePlugin({ 'process.env': { NODE_ENV: '"production"' } }), new webpack.LoaderOptionsPlugin({ minimize: true }) ] }