-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
46 lines (45 loc) · 1.05 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
const path = require('path');
const SkeletonWebpackPlugin = require('vue-skeleton-webpack-plugin');
module.exports = {
publicPath: "./",
devServer: {
port: 8092,
proxy: {
"/api/*": {
//target: "https://www.easy-mock.com/mock/5b95cb4a9b7e7a16f787f6e2",
target: 'http://localhost:3000',
ws: true,
changeOrigin: true
}
}
},
configureWebpack: (config)=>{
config.plugins.push(new SkeletonWebpackPlugin({
webpackConfig: {
entry: {
app: path.join(__dirname, './src/skeleton.js'),
},
},
minimize: true,
quiet: true,
// router: {
// mode: 'hash',
// routes: [
// {
// path: '/mainIndex',
// skeletonId: 'skeleton'
// }
// ]
// }
}))
},
// css相关配置
css: {
// 是否使用css分离插件 ExtractTextPlugin
extract: true,
// 开启 CSS source maps?
sourceMap: false,
// 启用 CSS modules for all css / pre-processor files.
modules: false
}
};