-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathvue.config.js
More file actions
27 lines (27 loc) · 941 Bytes
/
vue.config.js
File metadata and controls
27 lines (27 loc) · 941 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
module.exports = {
publicPath: '/',
outputDir: 'simply-proxy',
lintOnSave: true,
pages: {
// 当使用只有入口的字符串格式时,模板会被推导为 `public/forms.html`
// 并且如果找不到的话,就回退到 `public/index.html`。
// 输出文件名会被推导为 `forms.html`。
// forms: 'src/form/main.js',
setting: {
entry: 'src/setting/main.js', // page 的入口
template: 'public/index.html', // 模板来源
filename: 'setting.html', // 在 dist/index.html 的输出
title: '选项 < Host Proxy' // template 引用 <title><%= htmlWebpackPlugin.options.title %></title>
},
popup: {entry: 'src/popup/main.js', template: 'public/index.html', filename: 'popup.html', title: 'Host Proxy'},
},
productionSourceMap: false,
css: {
modules: false,
loaderOptions: {
sass: {
data: `@import "@/assets/_setting.scss";`
}
}
}
}