shimingxy 61a503b591 springboot init
springboot init
2019-09-08 09:00:40 +08:00

26 lines
622 B
JavaScript

var webpack = require('webpack');
var version = require('./package.json').version;
module.exports = {
entry: {
'dialog': './src/dialog.js',
'dialog-plus': './src/dialog-plus.js'
},
output: {
path: 'dist',
filename: '[name].js',
library: `dialog`,
libraryTarget: 'umd'
},
plugins: [
new webpack.BannerPlugin('art-dialog@' + version + ' | https://github.com/aui/artDialog')
],
externals: {
jquery: 'jQuery'
},
module: {
loaders: [
{ test: /\.css$/, loader: 'style-loader!css-loader' }
]
}
};