mirror of
https://gitee.com/vuejs/vue.git
synced 2024-11-30 02:57:43 +08:00
17 lines
334 B
JavaScript
17 lines
334 B
JavaScript
var path = require('path')
|
|
|
|
module.exports = {
|
|
entry: path.resolve(__dirname, 'src/index.umd.js'),
|
|
output: {
|
|
path: path.resolve(__dirname, 'dist'),
|
|
filename: 'vue.js',
|
|
library: 'Vue',
|
|
libraryTarget: 'umd'
|
|
},
|
|
module: {
|
|
loaders: [
|
|
{ test: /\.js/, loader: 'babel', exclude: /node_modules/ }
|
|
]
|
|
}
|
|
}
|