forked from NasirNobin/vue-fullcalendar
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwebpack.build.js
More file actions
27 lines (25 loc) · 798 Bytes
/
webpack.build.js
File metadata and controls
27 lines (25 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
var WebpackStripLoader = require('strip-loader')
var devConfig = require('./webpack.config.js')
var webpack = require('webpack')
var version = process.env.VERSION || require('./package.json').version
var banner =
'vue-fullcalendar v' + version + '\n' +
'(c) ' + new Date().getFullYear() + ' Sunny Wang <[email protected]> \n' +
'@license MIT'
var stripLoader = {
test: [/\.js$/, /\.es6$/],
exclude: /node_modules/,
loader: WebpackStripLoader.loader('console.log')
}
devConfig.module.loaders.push(stripLoader);
devConfig.entry = './src/index.js'
devConfig.output = {
path:'./dist',
filename:'vue-fullcalendar.js',
library:'VueFullcalendar',
libraryTarget: 'umd'
}
devConfig.plugins = devConfig.plugins.concat([
new webpack.BannerPlugin(banner)
])
module.exports = devConfig;