mirror of
				https://github.com/KevinMidboe/vue-js-modal.git
				synced 2025-10-29 18:00:20 +00:00 
			
		
		
		
	Added putputs for client and server
This commit is contained in:
		
							
								
								
									
										41
									
								
								build/webpack.base.config.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								build/webpack.base.config.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,41 @@ | ||||
| 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", | ||||
|  | ||||
| module.exports = { | ||||
|   entry: path.resolve(__dirname, '../src/index.js'), | ||||
|   output: { | ||||
|     path: path.resolve(__dirname, '../dist'), | ||||
|     publicPath: '/dist/', | ||||
|     filename: 'index.js', | ||||
|     library:'VueJsModal', | ||||
|     libraryTarget: 'commonjs2' | ||||
|   }, | ||||
|   module: { | ||||
|     rules: [ | ||||
|       { | ||||
|         test: /\.vue$/, | ||||
|         loader: 'vue-loader' | ||||
|       }, | ||||
|       { | ||||
|         test: /\.js$/, | ||||
|         loader: 'babel-loader', | ||||
|         exclude: /node_modules/ | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   externals: { | ||||
|     vue: 'vue' | ||||
|   }, | ||||
|   resolve: { | ||||
|     alias: { | ||||
|       'vue$': 'vue/dist/vue.esm.js' | ||||
|     } | ||||
|   }, | ||||
|   devtool: '#source-map', | ||||
|   plugins: [ | ||||
|     new UglifyJSPlugin() | ||||
|   ] | ||||
| } | ||||
		Reference in New Issue
	
	Block a user