-
Notifications
You must be signed in to change notification settings - Fork 8
/
vue.config.js
34 lines (32 loc) · 773 Bytes
/
vue.config.js
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
28
29
30
31
32
33
34
const webpack = require('webpack')
const npmCfg = require('./package.json')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const banner = [
npmCfg.name + ' v' + npmCfg.version,
'(c) ' + new Date().getFullYear() + ' ' + npmCfg.author,
npmCfg.homepage
].join('\n')
module.exports = {
productionSourceMap: false,
pages: {
index: {
entry: 'examples/main.js',
template: 'public/index.html',
filename: 'index.html'
}
},
configureWebpack: {
plugins: [
new webpack.BannerPlugin(banner),
new CopyWebpackPlugin([
{ from: './src/v-switcher.vue' },
{ from: './src/swipe.js' },
{ from: './src/affix.js' },
{ from: './src/utils.js' }
])
]
},
css: {
extract: true
}
}