Fixed issues with file names

This commit is contained in:
euvl
2017-06-20 09:00:17 +01:00
parent dcf3291623
commit b652b4342c
3 changed files with 3 additions and 4 deletions

View File

@@ -9,7 +9,6 @@ module.exports = {
output: { output: {
path: path.resolve(__dirname, '../dist'), path: path.resolve(__dirname, '../dist'),
publicPath: '/dist/', publicPath: '/dist/',
filename: 'index.js',
library:'VueJsModal', library:'VueJsModal',
libraryTarget: 'commonjs2' libraryTarget: 'commonjs2'
}, },
@@ -36,6 +35,6 @@ module.exports = {
}, },
devtool: '#source-map', devtool: '#source-map',
plugins: [ plugins: [
new UglifyJSPlugin() // new UglifyJSPlugin()
] ]
} }

View File

@@ -5,6 +5,6 @@ const base = require('./webpack.base.config')
module.exports = merge(base, { module.exports = merge(base, {
output: { output: {
filename: 'client.index.js' filename: 'index.js'
} }
}) })

View File

@@ -3,7 +3,7 @@
"description": "Modal Component for Vue.js", "description": "Modal Component for Vue.js",
"version": "1.2.0", "version": "1.2.0",
"author": "euvl <yev.vlasenko@gmail.com>", "author": "euvl <yev.vlasenko@gmail.com>",
"main": "dist/client.index.js", "main": "dist/index.js",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/euvl/vue-js-modal.git" "url": "https://github.com/euvl/vue-js-modal.git"