123456789101112131415161718192021222324 |
- 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/
- }
- ]
- }
- }
|