1 | module.exports = {
|
2 | lintOnSave: false,
|
3 | css: {
|
4 | extract: false
|
5 | },
|
6 | pages: {
|
7 | index: {
|
8 | entry: 'dev/main.js',
|
9 | template: 'public/index.html',
|
10 | filename: 'index.html'
|
11 | }
|
12 | },
|
13 | configureWebpack: config => {
|
14 | if (process.env.NODE_ENV === 'production') {
|
15 | config.externals = ['vue', 'Vue', 'element-ui', 'ElementUI']
|
16 | }
|
17 | }
|
18 | }
|