You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
433 B
24 lines
433 B
const path = require('path')
|
|
|
|
module.exports = {
|
|
entry: './components/index.js',
|
|
output: {
|
|
path: path.resolve(__dirname, './'),
|
|
filename: '../index.js',
|
|
library: 'VueBaiduMap',
|
|
libraryTarget: 'umd'
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.vue$/,
|
|
loader: 'vue-loader'
|
|
},
|
|
{
|
|
test: /\.js$/,
|
|
loader: 'babel-loader',
|
|
exclude: /node_modules/
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|