Removed source maps generation

This commit is contained in:
euvl
2017-07-04 17:08:49 +01:00
parent f371235d03
commit 099a2fff4f
2 changed files with 14 additions and 16 deletions

View File

@@ -1,8 +1,6 @@
const path = require('path')
const webpack = require('webpack')
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
// "build:client": "cross-env NODE_ENV=production webpack --config ./build/webpack.client.config.js --progress --hide-modules",
// const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
module.exports = {
entry: path.resolve(__dirname, '../src/index.js'),
@@ -10,7 +8,8 @@ module.exports = {
path: path.resolve(__dirname, '../dist'),
publicPath: '/dist/',
library:'vue-js-modal',
libraryTarget: 'umd'
libraryTarget: 'umd',
umdNamedDefine: true
},
module: {
rules: [
@@ -33,7 +32,7 @@ module.exports = {
'vue$': 'vue/dist/vue.esm.js'
}
},
devtool: '#source-map',
devtool: false,
plugins: [
// new UglifyJSPlugin()
]

21
dist/index.js vendored

File diff suppressed because one or more lines are too long