mirror of
https://github.com/KevinMidboe/vue-js-modal.git
synced 2025-10-29 18:00:20 +00:00
Removed source maps generation
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
const path = require('path')
|
const path = require('path')
|
||||||
const webpack = require('webpack')
|
const webpack = require('webpack')
|
||||||
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
|
// const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
|
||||||
|
|
||||||
// "build:client": "cross-env NODE_ENV=production webpack --config ./build/webpack.client.config.js --progress --hide-modules",
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
entry: path.resolve(__dirname, '../src/index.js'),
|
entry: path.resolve(__dirname, '../src/index.js'),
|
||||||
@@ -10,7 +8,8 @@ module.exports = {
|
|||||||
path: path.resolve(__dirname, '../dist'),
|
path: path.resolve(__dirname, '../dist'),
|
||||||
publicPath: '/dist/',
|
publicPath: '/dist/',
|
||||||
library:'vue-js-modal',
|
library:'vue-js-modal',
|
||||||
libraryTarget: 'umd'
|
libraryTarget: 'umd',
|
||||||
|
umdNamedDefine: true
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
@@ -33,7 +32,7 @@ module.exports = {
|
|||||||
'vue$': 'vue/dist/vue.esm.js'
|
'vue$': 'vue/dist/vue.esm.js'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
devtool: '#source-map',
|
devtool: false,
|
||||||
plugins: [
|
plugins: [
|
||||||
// new UglifyJSPlugin()
|
// new UglifyJSPlugin()
|
||||||
]
|
]
|
||||||
|
|||||||
21
dist/index.js
vendored
21
dist/index.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user