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.
25 lines
433 B
25 lines
433 B
3 months ago
|
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/
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|